Created
September 19, 2021 08:05
-
-
Save dSalieri/c2cb279452e525630132b2f5d8660598 to your computer and use it in GitHub Desktop.
Pseudorandom is based on Math.random function
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
| function rand(start, end){ | |
| return start + (Math.round(Math.random() * Math.abs(start - end))); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment