-
Notifications
You must be signed in to change notification settings - Fork 1
tannus.math.Random
DavisDevelopment edited this page Dec 30, 2014
·
1 revision
Seedable Pseudo-Random-Number Generation class
generates an integer from the bytes of
str_seed
, then returns a newRandom
instance using that as it's seed
effectively, the current "seed" in use by
this
instance
mutates
state
and returns the result
returns the relationship between
state
and ECMAScript's integer-cap
returns random Boolean value
returns random Integer between
min
andmax
returns a randomly-selected item from
options
ifoptions.length
<2
, result is unspecified
returns a new Array with all of the same contents as
items
,
but with all of their indices randomly re-assigned