Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 590 Bytes

random.adoc

File metadata and controls

35 lines (28 loc) · 590 Bytes

random()

Important

Deprecated in 5.0.

Please use [func-math-random] instead.

random(minValue, maxValue) => Integer

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

Table 1. Parameters

minValue

Integer

Start of range.

minValue

Integer

End of range.

Return

Random value in range minValue..maxValue.

Example
println(random(0, 100)); // Will print random value in 0..100 range