Skip to content

oolong / oolong.random / nextUInt

nextUInt

(common) @ExperimentalUnsignedTypes fun <Msg :Any> nextUInt(msg: suspend CoroutineScope.(UInt) -> Msg):Effect<Msg> (source) @ExperimentalUnsignedTypes fun <Msg :Any> nextUInt(until:UInt, msg: suspend CoroutineScope.(UInt) -> Msg):Effect<Msg> (source) @ExperimentalUnsignedTypes fun <Msg :Any> nextUInt(from:UInt, until:UInt, msg: suspend CoroutineScope.(UInt) -> Msg):Effect<Msg> (source) @ExperimentalUnsignedTypes fun <Msg :Any> nextUInt(range:UIntRange, msg: suspend CoroutineScope.(UInt) -> Msg):Effect<Msg> (source)

Call Random.nextUInt with a mapping of UInt to Msg.

Parameters

msg - map function of UInt to Msg

Return Effect of Msg for the generated UInt