RPG Lab

A set of functions for generating and testing random permutations of the integers (1,2, ..., n).

Vous suivez désormais cette soumission

The main functions provided are:

1. p = GRPfys(n); generates a random permutation of length n.

2. p = GRPmex(n); generates a random permutation of length n.

3. p = GRDrej(n); generates a derangement of length n.

4. p = GRDmex(n); generates a derangement of length n.

5. p = GRDMPP(p); generates a derangement of length n.

6. p = GRPcyc(p); generates a cyclic permutation of length n.

7. Various interrogation functions, e.g., IsCyc(p).

Included is a set of notes on Random Permutations and their implementation and testing.

Citation pour cette source

Derek O'Connor (2026). RPG Lab (https://fr.mathworks.com/matlabcentral/fileexchange/30101-rpg-lab), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.2.0.0

Changed package name from RPGTools to RPGLab. Updated notes to RPGLabNotes1.1.pdf

1.0.0.0