nextLong

open override fun nextLong(): Long

Generates a Long value.

Return

the next random value.

open override fun nextLong(n: Long): Long

Generates a Long value between 0 (inclusive) and the specified value (exclusive).

Return

a random long value between 0 (inclusive) and n (exclusive).

Parameters

n

Bound on the random number to be returned. Must be positive.