Random Number Generation using C language

Status
Not open for further replies.

hemant2007

Member level 2
Joined
Jan 14, 2007
Messages
43
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,537
can anyone tell me or ggive me links related to RANDOM NUMBER GENERATION
USING C LANGUAGE ?

Thank you
 

you can use the function rand();
Example:

int cc;

cc = rand();


Kr,
Avi
 

Are you looking to write your own random number generator for an embedded system?
 

Don't forget to choice an assincronous seed, external to the uControler.
In some cases, you can use A/D input to get it.

+++
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…