/get-rnd

Primary LanguageJavaScript

Test getRnd function with accuracy.

Reproduce

  • git clone this repo
  • use yarn serve
  • change the difficult argument to your value, to provide more accuracy

Simple output

[Default random function output]

Key: 0 -> 999
Key: 1 -> 996
Key: 2 -> 1027
Key: 3 -> 1019
Key: 4 -> 961
Key: 5 -> 1021
Key: 6 -> 989
Key: 7 -> 1004
Key: 8 -> 970
Key: 9 -> 1015


[Random function output with accuracy]

Key: 0 -> 986
Key: 1 -> 1003
Key: 2 -> 1002
Key: 3 -> 1001
Key: 4 -> 1005
Key: 5 -> 1004
Key: 6 -> 993
Key: 7 -> 1003
Key: 8 -> 1002
Key: 9 -> 1002