File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,15 @@ Randomness algorithms for JavaScript.
12
12
See [ docs] ( https://aureooms.github.io/js-random ) .
13
13
Parent is [ @aureooms/js-algorithms ] ( https://aureooms.github.io/js-algorithms ) .
14
14
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
+
15
24
[ ![ License] ( https://img.shields.io/github/license/aureooms/js-random.svg )] ( https://raw.githubusercontent.com/aureooms/js-random/main/LICENSE )
16
25
[ ![ Version] ( https://img.shields.io/npm/v/@aureooms/js-random.svg )] ( https://www.npmjs.org/package/@aureooms/js-random )
17
26
[ ![ Build] ( https://img.shields.io/travis/aureooms/js-random/main.svg )] ( https://travis-ci.org/aureooms/js-random/branches )
You can’t perform that action at this time.
0 commit comments