Skip to content

Commit

Permalink
📚 docs(README): Add import snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Dec 11, 2020
1 parent fb17109 commit 9a1d16e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ Randomness algorithms for JavaScript.
See [docs](https://aureooms.github.io/js-random).
Parent is [@aureooms/js-algorithms](https://aureooms.github.io/js-algorithms).

```js
import {
randint , // randint(i, j) -> [i, j[ \cap ZZ
randfloat , // randfloat(i, j) -> [i, j[
sample , // /!\ in-place
shuffle , // /!\ in-place
} from '@aureooms/js-random' ;
```

[![License](https://img.shields.io/github/license/aureooms/js-random.svg)](https://raw.githubusercontent.com/aureooms/js-random/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@aureooms/js-random.svg)](https://www.npmjs.org/package/@aureooms/js-random)
[![Build](https://img.shields.io/travis/aureooms/js-random/main.svg)](https://travis-ci.org/aureooms/js-random/branches)
Expand Down

0 comments on commit 9a1d16e

Please sign in to comment.