Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • What, specifically, is the problem you are having? Commented Mar 28, 2014 at 21:28
  • Try incrementing BEFORE you set it to the array. Commented Mar 28, 2014 at 21:28
  • The output shows 0 for each of the 10 array slots. It's not actually counting the random numbers for me. I need the program to count the number of times it comes up with the random number. Commented Mar 28, 2014 at 21:31
  • After incrementing beforehand and changing the rands precedence, I was able to get this running. Thanks all. @RUJordan n' Zou Commented Mar 28, 2014 at 21:45