avinash.kashyap
Junior Member level 3

...hi, i'm using AVR Studio/ GCC + WinAVR...and using function as n=rand()*6, trying to generate any random number between 0 to 5 but the problem is everytime my MCU gives me the same sequence of "random" numbers e.g. {6, 5, 3, 1, 4, 2 ...and it repeats}...so can someone help to generate real unpredictible random numbers?...