isodi v0.5.0 (2022-07-20T17:47:10Z)
Dub
Repo
randomNumber
isodi
utils
Get a random number in inclusive range.
@
safe
@
trusted
T
randomNumber
(
T
RNG
)
(
T
min
,
T
max
,
ref
RNG
rng
)
in (min <= max, "minimum value must be lesser or equal to max")
Meta
Source
See Implementation
isodi
utils
functions
assign
assignChunk
mul
randomNumber
randomVariant
reinterpret
structof
structs
Ancestors
DeepAncestors
RectangleI
Vector2I
templates
writefln
Get a random number in inclusive range.