chris - added random generator