Code covered by the BSD License  

Highlights from
Random Number Generation

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 1.53 KB File ID: #34887

Random Number Generation

by Aamir Alaud-din

 

02 Feb 2012

Random integers (positive as well as negative) can be generated.

| Watch this File

File Information
Description

Random numbers (positive as well as negative) can be generated. Occurrence of each number generated is equally likely. For example, if you want to generate integers from 2 to 21, the numbers from 2 to 21 will be generated with equal chance of occurrence. Instead of 3.4563 as a random number, 3 will be generated. The file has been tested using probability rule of occurrence of numbers.

Required Products MATLAB
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
demo, finance, mathematics, measurement, statistics
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
02 Feb 2012 Daniel

could you please explain the difference to randi()?

Contact us