This tutorial was inspired by the awesome Scala Cookbook and this great StackOverflow answer.
// Create a value that is the random packagevalrandom=newscala.util.Random
Create A Start And End
// Create a start and end value pairvalstart=-10valend=10
Generate Random Integer Between The Start And End Values
// Then generate a random integer between 0 and the different between end and start + 1//(to make it inclusive), then shift the value into the desired range by added the start valuestart+random.nextInt((end-start)+1)