About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconRandom Number Streams (Scripts) Publisher's description

NOTE: Beginning in release R2008b, MATLAB includes support for random number streams.

NOTE: Beginning in release R2008b, MATLAB includes support for random number streams. The code here is not as flexible, and uses some deprecated constructs, and is not recommended or needed for versions of MATLAB newer than R2008a.

These files provide (pseudo)Random Number Generators (RNGs) that are separate from any other calls to other MATLAB RNG functions. Create as many as you need, and they act "independently". That is, calls to one do not affect the state of the others.

Chances are, you do not need to use these. They do not make random values "more random" or "more independent". But they do have uses in certain kinds of simulation modelling work.

Two versions:

* Both versions keep track of their own state vectors internally.

* The first version sets rand and randn to its internal state, calls the appropriate RNG function, and resets rand and randn, each time it's called.

* The second version maintains an internal buffer of random values, and does the above only when the buffer runs short.

The difference is that the second version trades memory overhead for time overhead, and is perhaps more appropriate for users whose simulations dictate getting random values one at a time.

By default, the RNG streams are all initialized to the same zero'th state, meaning they are perfectly correlated if they stay in sync. You'll want to avoid that by initializing to different states.

System Requirements:

MATLAB 7.0.1 (R14SP1)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Random Number Streams (Scripts) Tags:

Click on a tag to find related softwares

Is Random Number Streams (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.