Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import scala.util.Random
val r = new Random
var a = (r.nextDouble * 10).floor / 10
println(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment