using randoms generated by scala generator