Random derangement

版本 1.0.1 (2.1 KB) 作者: Bruno Luong
Generate sequences of random derangement
44.0 次下载
更新时间 2021/3/1

查看许可证

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.

引用格式

Bruno Luong (2025). Random derangement (https://ww2.mathworks.cn/matlabcentral/fileexchange/87994-random-derangement), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2020b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.1

Speed optimization

1.0.0