Hello,
I have been told that this is a portable random function (and it is, it works perfectly!) but I would like to understand its inner mechanisms.
Since I would like to focus on clean and portable code, but still I'm following both books and the 'net without any "official" teacher (so with many teachers, which is you all that know more than me), can someone redirect me to a decent resource or explain it directly?
I hope I am not asking too much.
Thanks in advance =)
Code:{ time_t t = time(NULL); while (t > 0u - 1 + 0.0) { t /= 2; } srand(t); }