English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

It's part of RandomNumberGeneration...C++

2006-07-15 01:50:23 · 1 answers · asked by nutelle 1 in Computers & Internet Programming & Design

1 answers

srand((unsigned)time(NULL));
seeds the random number generator based on the time. what that means is that it tells the random number generator where to start when you call the random number generator.

x[index] = rand()%max;
is filling an array "x" with random numbers

2006-07-15 02:29:44 · answer #1 · answered by justme 7 · 0 0

fedest.com, questions and answers