Skip to content

oolong / oolong.random / nextDouble

nextDouble

(common) fun <Msg :Any> nextDouble(msg: suspend CoroutineScope.(Double) -> Msg):Effect<Msg> (source) fun <Msg :Any> nextDouble(until:Double, msg: suspend CoroutineScope.(Double) -> Msg):Effect<Msg> (source) fun <Msg :Any> nextDouble(from:Double, until:Double, msg: suspend CoroutineScope.(Double) -> Msg):Effect<Msg> (source)

Call Random.nextDouble with a mapping of Double to Msg.

Parameters

msg - map function of Double to Msg

Return Effect of Msg for the generated Double