Why is the "state" important?

1 view (last 30 days)
Mark
Mark on 18 Jul 2012
I am going through a code which uses 'state' in a line. What does 'state' do, and could it be of importance? I read that it "resets the generator to its 100th state", but what does this mean?
rand('state',100)

Accepted Answer

per isakson
per isakson on 18 Jul 2012
Edited: per isakson on 18 Jul 2012

More Answers (0)

Categories

Find more on Random Number Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!