Testing random numbers and random array choice.