Mercurial > hg > trimatlab
view randomise.m @ 13:c0e75adddc95
Forgot to update one call to mc_global_info.
author | samer |
---|---|
date | Sun, 26 Feb 2012 23:15:59 +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