Go Down

Topic: Rand() function (Read 1 time) previous topic - next topic


Dear readers,

I am trying to implement the rand function that arduino uses in other language but i cannot get the code, i have read that it uses the same rand function that C++ uses. My question is if anybody can give me a webpage where the code is located or directly the code.

Thanks to all.
Best Regards.

Coding Badly

The AVR Libc rand function packaged with Arduino is a variation of the Park-Miller minimal random number generator.

All of the AVR Libc source code is available from here...


The most recent version of rand is available here...



google 1103515245.

More than what you want to know about random number generators.

Go Up