Mercurial > hg > trimatlab
view randomise.m @ 15:a6d5597bd922
Trying alternative fixed point computation in mc_global_info1>mc_fixpt2;
Also factored out randnat from some other functions.
author | samer |
---|---|
date | Mon, 27 Feb 2012 14:41:24 +0000 |
parents | bce0bd672b47 |
children |
line wrap: on
line source
function s=randomise % randomise - get entropy from time and reset random number generators m=[5000,700000,1000000,1000000,1000000,10000000]; rand('state',sum(m.*clock)); randn('state',sum(m.*clock)); if nargout>0, s=getrndstate; end