Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created January 23, 2015 11:59
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/b9a7066b6ccaa9ba4882 to your computer and use it in GitHub Desktop.
Save shigemk2/b9a7066b6ccaa9ba4882 to your computer and use it in GitHub Desktop.
val r1 = scala.util.Random
println(r1.nextInt)
println(r1.nextInt(100))
println(r1.nextFloat)
println(r1.nextDouble)
val r2 = new scala.util.Random(100)
println(r2.setSeed(1000L))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment