randomSample

fun randomSample(randomSequence: Identifier? = null, broadcast: Boolean = false, min: Int = Int.MIN_VALUE, max: Int = Int.MAX_VALUE): Int?

Sample a random integer in min, max using optional random sequence.

Return

sampled integer or null on invalid range

Parameters

randomSequence

optional identifier for random sequence

broadcast

whether to broadcast the result to players

min

inclusive minimum

max

inclusive maximum