Random derangement

Version 1.0.1 (2.14 KB) by Bruno Luong
Generate sequences of random derangement
39 Downloads
Updated 1 Mar 2021

View License

A derangement is a permutation of the elements of a set, such that no element appears in its original position.

The code use non rejection method for better predictable runtime.

Cite As

Bruno Luong (2024). Random derangement (https://www.mathworks.com/matlabcentral/fileexchange/87994-random-derangement), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.1

Speed optimization

1.0.0