After searching the net for an hour to find a good random number generator, this is the best I found. From what I understand it works off of time as seconds and minutes change, but I would like to dive in further to understand the purpose of these 5 items...
srand
rand
time
NULL
<ctime>
Code:#include <iostream> #include <ctime> using namespace std; int main() { srand(time(NULL)); cout << rand(); }



LinkBack URL
About LinkBacks



After you have read through the article that I linked to below, and have experimented with this a little more, take a look at what is offered by