c++ - How to find the frequency of a range of random numbers? -
i'm beginner @ c++ , trying find frequency of numbers(1-6) random number generator of 100 numbers. commands can utilize rand, srand, cin, cout, loops, , if else. possible create programme shows frequency using these commands? give thanks you.
you can utilize std::map<int, int>
first
random number , second
count.
therefore frequency count / total.
c++ random numbers generator frequency
No comments:
Post a Comment