Search:
Forum
Beginners
How do I execute this program?
[try Beta version]
Not logged in
register
log in
user name:
password:
remember me
forgot your password?
or sign in using:
try again
cancel
forgot your password?
How do I execute this program?
Mar 14, 2013 at 12:20am
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
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.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs