Why is the "state" important?

6 visualizaciones (últimos 30 días)
Mark
Mark el 18 de Jul. de 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)

Respuesta aceptada

per isakson
per isakson el 18 de Jul. de 2012
Editada: per isakson el 18 de Jul. de 2012

Más respuestas (0)

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by