Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created December 31, 2014 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shigemk2/857ec56af8fe9170ae55 to your computer and use it in GitHub Desktop.
Save shigemk2/857ec56af8fe9170ae55 to your computer and use it in GitHub Desktop.
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