470,841 Members | 1,083 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,841 developers. It's quick & easy.

help lpz

hi

#i am looking for random number generator by c
thanx

Feb 25 '06 #1
2 1303
ba********@hotmail.com schrieb:
hi

#i am looking for random number generator by c


#include <stdlib.h>

gives you

int rand(void);
void srand(unsigned int SEED);

Use srand() to seed with an arbitrary or fixed value,
then use rand().
If you want more, ask in an appropriate newsgroup for
algorithms -- we can help you with your attempt at
implementing them.
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Feb 25 '06 #2
On Sat, 25 Feb 2006 22:25:36 UTC, ba********@hotmail.com wrote:

Who is lpz? Why does you think lpz may help you?
hi

#i am looking for random number generator by c
thanx


Look at your C documentation for srand() and rand().

--
Tschau/Bye
Herbert

Visit http://www.ecomstation.de the home of german eComStation
eComStation 1.2 Deutsch ist da!
Feb 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Tom | last post: by
6 posts views Thread by wukexin | last post: by
3 posts views Thread by Colin J. Williams | last post: by
7 posts views Thread by Corepaul | last post: by
5 posts views Thread by Steve | last post: by
8 posts views Thread by Mark | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.