Core 1.0
Public Member Functions | Static Public Member Functions | List of all members
Shuffle Class Reference

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...
 

Detailed Description

Shuffling algorithms for generation permutation tables.

Member Function Documentation

◆ Table()

QVector< int > Shuffle::Table ( int  n)
static

Compute a permutation table.

This is an implementation of a modified version of the Fisher–Yates algorithm.

Parameters
nSize.