Skip to content

Commit 9a1d16e

Browse files
📚 docs(README): Add import snippet.
1 parent fb17109 commit 9a1d16e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ Randomness algorithms for JavaScript.
1212
See [docs](https://aureooms.github.io/js-random).
1313
Parent is [@aureooms/js-algorithms](https://aureooms.github.io/js-algorithms).
1414

15+
```js
16+
import {
17+
randint , // randint(i, j) -> [i, j[ \cap ZZ
18+
randfloat , // randfloat(i, j) -> [i, j[
19+
sample , // /!\ in-place
20+
shuffle , // /!\ in-place
21+
} from '@aureooms/js-random' ;
22+
```
23+
1524
[![License](https://img.shields.io/github/license/aureooms/js-random.svg)](https://raw.githubusercontent.com/aureooms/js-random/main/LICENSE)
1625
[![Version](https://img.shields.io/npm/v/@aureooms/js-random.svg)](https://www.npmjs.org/package/@aureooms/js-random)
1726
[![Build](https://img.shields.io/travis/aureooms/js-random/main.svg)](https://travis-ci.org/aureooms/js-random/branches)

0 commit comments

Comments
 (0)