1) In MPLAB XC8 Compiler Guide;
srand() and rand() functions are demonstrated in page 399
http://ww1.microchip.com/downloads/en/devicedoc/50002053g.pdf
==========================
#include
#include
#include
void main (void)
{
time_t toc;
int i;
time(&toc);
srand((int)toc);
for(i = 0 ; i != 10 ; i++)
printf("%d\t", rand());
putchar(’\n’);
}
==========================
2) In random.org a sequence generator is demostrated with true random values
https://www.random.org/sequences/
3) IN PIC MCU without random number generator hard ware only pseudo random numbers are possible
4) My question is how can I generate pseudorandom numbers without any repetation like in random.org ? Is there a stable way ?
e.g. pseudorandom number sequence without repetation between [1-9] ?