You want random numbers in the range from 0 to 9. Which is 10 possible outcomes.
The array in the for loops goes from 0 to 8, which is 9 places.
If that is what you want, OK with me. But I like to mention it anyway.
Reputation Points: 2035
Solved Threads: 644
Senior Poster
Offline 3,736 posts
since Oct 2008