Hi all
how do load vars with random values ?
for example I need 3 random integers from 1 to 10 1 in each in each var .
What is the C code for declaring 3 integer variables loaded with a random integer for 1 to 10 each ?
Thanks Elico
It doesn't hurt to make use of least-significant-bit noise from the ADC, or inter-packet delays on ethernet interface etc, to help out with some extra entropy. rand()/srand() alone can be quite boring to use.
my favorite random generator is a free running timer that is read when some asynchrounous event e.g. a button press happens.
Erik