Improved reset to regenerate random number