cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How do I execute this program?
How do I execute this program?
Mar 14, 2013 at 12:20am UTC
overtime718
(4)
Write a program that picks 1000 random numbers between 0 and 10 and tells us how many of these were <5.
So when you run it might say:
I picked a 1000 random numbers between 0-10 and 443 of them were <5
Mar 14, 2013 at 12:22am UTC
maeriden
(872)
http://cplusplus.com/reference/cstdlib/rand/?kw=rand
you'll need to include cstdlib.
Topic archived. No new replies allowed.