added random number generator thing