refactoring the helpers randoms to use arrays