File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 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.
1212See [ docs] ( https://aureooms.github.io/js-random ) .
1313Parent 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 )
You can’t perform that action at this time.
0 commit comments