Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 496 Bytes

File metadata and controls

21 lines (17 loc) · 496 Bytes

Math::Random

Math::Random(minValue, maxValue): int

Generate pseudo random number in given range. Uses cryptographically secure pseudo random generator (CSPRNG).

Table 1. Parameters

minValue

int

Start of range (inclusive)

minValue

int

End of range (inclusive)

Return

Random value in range minValue..maxValue.

println(Math::Random(0, 100)); // Will print random value in 0..100 range