Fixed the randomizer

The randomizer would come back with an error after the second run so I
stored the length of the arrays in there own variable instead of using
the method as a parameter