started gen_rand_soln method