Generating random 4 digit array done in RandomGenerator