fun nextBits(bitCount: Int): Int
Gets the next random bitCount number of bits.
Generates an Int whose lower bitCount bits are filled with random values and the remaining upper bits are zero.
Int
bitCount - number of bits to generate, must be in range 0..32, otherwise the behavior is unspecified.
bitCount
© 2010–2019 JetBrains s.r.o.Licensed under the Apache License, Version 2.0. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.random/-random/-companion/next-bits.html