Bug fix

Make random number onResume()