Skip to content

Instantly share code, notes, and snippets.

@krishnanraman
Last active December 11, 2015 03:08
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 krishnanraman/4535154 to your computer and use it in GitHub Desktop.
Save krishnanraman/4535154 to your computer and use it in GitHub Desktop.
Employee DB
case class Employee(age:Int, tenure:Int, salary:Int, name:String)
def rnd(min:Int,max:Int) = math.round(min+math.random*(max-min)).toInt
val empDB = for(employees<-1 to 10000) yield Employee( rnd(25,35),rnd(1,6),rnd(85000,150000),"emp"+employees)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment