refactoring the helpers randoms to use arrays, now it works