Generate random number in C++

2 views
Skip to first unread message

Shajahan ES

unread,
Sep 6, 2011, 11:19:43 PM9/6/11
to A++ Group, pranith...@rediffmail.com
the function is : int rand ( void );
Library : <cstdlib>

Returns a pseudo-random integral number in the range 0 to RAND_MAX.

for more details , see : http://goforaplusplus.wordpress.com/2011/09/07/generate-random-number-in-c/
reference : http://www.cplusplus.com/reference/clibrary/cstdlib/rand/

Shafeeq K

unread,
Sep 7, 2011, 9:45:29 AM9/7/11
to goforap...@googlegroups.com
Since we are discussing rand() function, here's a hilarious comic too
hard to miss at the moment:

http://xkcd.com/221/

Cheers,
Shafeeq

Reply all
Reply to author
Forward
0 new messages