Core 1.0
|
Shuffling algorithms for generation permutation tables. More...
#include <shuffle.h>
Public Member Functions | |
Shuffle () | |
Empty. | |
~Shuffle () | |
Empty. | |
Static Public Member Functions | |
static QVector< int > | Table (int) |
Compute a permutation table. More... | |
Shuffling algorithms for generation permutation tables.
|
static |
Compute a permutation table.
This is an implementation of a modified version of the Fisher–Yates algorithm.
n | Size. |