Created
July 2, 2020 17:02
-
-
Save dubzzz/4f3d227eb4af491da8b506503fd3174f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // const miniFc = {} | |
| miniFc.integer = (min, max) => { | |
| return { | |
| generate(mrng) { | |
| return mrng.next(min, max); | |
| } | |
| }; | |
| } | |
| // It can be used as follow: | |
| // > miniFc.integer(0, 50).generate(mrng) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment