I think you need to add a random function as used below
func Rand(min, max)
{
//Get Random In Between Values//
return
}