generate rand numbers tested