add trying again function
refine random number generator
added 6 times verify