Learnem Educational
May 18, 2012, 01:02:26 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Learnem Educational
>
Free Ebooks Discussion
>
Programming in C in 7 Days (Free Ebook)
>
Random Numbers in C
Pages: [
1
]
« previous
next »
Print
Author
Topic: Random Numbers in C (Read 1378 times)
Anonymous
Guest
Random Numbers in C
«
on:
August 31, 2002, 08:43:19 PM »
Is it possible to get a random number generated in C?
If you know how, could you please e-mail me or post a reply? My e-mail is
psycho_mantis246@hotmail.com
«
Last Edit: January 01, 1970, 12:00:00 AM by Anonymous
»
Logged
Mr. Cool
Newbie
Posts: 11
Anything is possible!
«
Reply #1 on:
August 31, 2002, 11:06:40 PM »
Yes!
Use the function rand(). This produces the same random number over and over again. To produce random random numbers use function srand().
Hope this helps!
«
Last Edit: January 01, 1970, 12:00:00 AM by Mr. Cool
»
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Free Ebooks Discussion
-----------------------------
=> Web Design in 7 days (Free ebook)
=> Programming in C in 7 Days (Free Ebook)
=> ASP Web Programming in 7 days
Loading...