uniform

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

expect fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0

actual fun uniform(upperBound: UInt): UInt

The randombytes_uniform() function returns an unpredictable value between 0 and upper_bound (excluded). Unlike r andombytes_random() % upper_bound, it guarantees a uniform distribution of the possible output values even when upper_bound is not a power of 2. Note that an upper_bound < 2 leaves only a single element to be chosen, namely 0