
please wait
random_shuffle( buffer[ 0 ],buffer[ NSITES - 1 ] );
|
|
randome_shuffle
works with pointers(in arrays) or iterators (STL containers).randome_shuffle(buffer,buffer+x)
buffer
is the start of the array, and x
is the offset position from the beginning. type buffer[size];
, then x
will be size
if you wnat to shuffle the whole array.