fork(3) download
  1. import java.util.Random
  2. object Main {
  3.  
  4. val rnd = new Random()
  5.  
  6. def randomNumericalString(): String = {
  7. return ((10000.0 + rnd.nextDouble() * (10000000000.0 - 10000.0)).toLong).toString
  8. }
  9.  
  10. def main(args: Array[String]) {
  11. println("Random: " + randomNumericalString())
  12. }
  13. }
Success #stdin #stdout 0.35s 381952KB
stdin
Standard input is empty
stdout
Random: 2942191970