W3cubDocs

/Kotlin

nextFloat

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
open fun nextFloat(): Float
fun nextFloat(): Float

Gets the next random Float value uniformly distributed between 0 (inclusive) and 1 (exclusive).

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.random/-random/next-float.html