From 9a1d16e9c5c03184a91f636ed79b555fa76de1d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Fri, 11 Dec 2020 18:01:30 +0100 Subject: [PATCH] :books: docs(README): Add import snippet. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index f29ecde..35538f9 100644 --- a/README.md +++ b/README.md @@ -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)