No BSD License  

Highlights from
RANDOM

5.0

5.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 2.8 KB File ID: #2848

RANDOM

by Alex Bar-Guy

 

12 Dec 2002 (Updated 29 Dec 2004)

Uniformly distributed random numbers on a non-continuous domain defined by several intervals.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
21 Mar 2004 Kostas Nadima

Very nice to find it when you need it...
Thanks a lot!

Please login to add a comment or rating.
Updates
02 Jan 2003

A little bit different more effective implementation improving the runtime of the proposed uniform generator is found.

29 Dec 2004

Bug fix: Crash using RANDOM(D) was corrected

Tag Activity for this File
Tag Applied By Date/Time
statistics Alex Bar-Guy 22 Oct 2008 06:55:02
probability Alex Bar-Guy 22 Oct 2008 06:55:02
random Alex Bar-Guy 22 Oct 2008 06:55:02
pseudo Alex Bar-Guy 22 Oct 2008 06:55:02
generation Alex Bar-Guy 22 Oct 2008 06:55:02
uniform Alex Bar-Guy 22 Oct 2008 06:55:02
distribution Alex Bar-Guy 22 Oct 2008 06:55:02
generate Alex Bar-Guy 22 Oct 2008 06:55:02
effective Alex Bar-Guy 22 Oct 2008 06:55:02

Contact us at files@mathworks.com