//ERDDAP/com.cohort.util/ScriptMath2/random
random
[JVM]
open fun random(max: Int): Int
This returns a random integer between 0 and max-1. For testing purposes, you can call Math2.setSeed(long seed) to get repeatable results.
Return
a "random" number in the range 0 .. max-1
Parameters
JVM
max | a int greater than 0 |