Skip to content

Instantly share code, notes, and snippets.

@cocomoff
Created October 25, 2014 08:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cocomoff/85aa6c01248475e9908f to your computer and use it in GitHub Desktop.
org.apache.commons.math3 from scala (sbt)
libraryDependencies += "org.apache.commons" % "commons-math3" % "3.2"
import org.apache.commons.math3.random._
object Main {
def main(args: Array[String]) {
val randomData = new RandomDataGenerator()
for (i <- 1 to 1000) {
println( randomData.nextLong(1, 100000) )
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment