git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2103 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
902b6679b1
commit
379c333733
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ public:
|
||||||
vect[i] = i;
|
vect[i] = i;
|
||||||
// we want a random permutation so we shuffle
|
// we want a random permutation so we shuffle
|
||||||
for (unsigned i = 0; i < N; i++) {
|
for (unsigned i = 0; i < N; i++) {
|
||||||
random = rand() % (N - i) + i;
|
random = rng.rand() % (N - i) + i;
|
||||||
temp = vect[i];
|
temp = vect[i];
|
||||||
vect[i] = vect[random];
|
vect[i] = vect[random];
|
||||||
vect[random] = temp;
|
vect[random] = temp;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue