nextUInt

Gets the next random UInt from the random number generator.

fun Random.nextUInt(): UInt(source)
import kotlin.random.Random

fun main() {
    val randomUInt = Random.nextUInt()
    println("Generated UInt: $randomUInt")
}

Source