Forum Discussion
Altera_Forum
Honored Contributor
21 years ago"Random" Instruction
Hi, can anyone tell me how to generate random numbers in the NIOS II , for the IDE software in C ? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif thanks
Altera_Forum
Honored Contributor
21 years agoIt all depends what you need the random number for. rand() is good enough for a lot of things, but it generates a fixed sequence of numbers which won't be appropriate for some applications.
If you want a real random number then you need to drive it from some sort of non-deterministic process as the earlier links suggested.