RANDOM

版本 1.0.0.0 (1.1 KB) 作者: Alex Bar-Guy
Uniformly distributed random numbers on a non-continuous domain defined by several intervals.
2.6K 次下载
更新时间 2004/12/29

无许可证

RANDOM takes the advantage of RAND basic function to generate random entries, chosen from a uniform distribution on the non-continuous domain defined by several intervals.

RANDOM with no input arguments is the same as RAND.

RANDOM(D) generates one random number on the domain D, where D is (Nx2)-real matrix defining N non-intersected intervals.

RANDOM(D, N) is an N-by-N matrix with random entries, chosen from a uniform distribution on the domain defined by D.

RANDOM(D,M,N) and RANDOM(D, [M,N]) are M-by-N matrices with random entries on the domain defined by D.

RANDOM(D,M,N,P,...) or RANDOM(D,[M,N,P,...]) generate random arrays on the domain defined by D.

引用格式

Alex Bar-Guy (2024). RANDOM (https://www.mathworks.com/matlabcentral/fileexchange/2848-random), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R12
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Random Number Generation 的更多信息

Community Treasure Hunt

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

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

Bug fix: Crash using RANDOM(D) was corrected