Mercurial > hg > trimatlab
view randomise.m @ 10:bce0bd672b47
randomise.m is now public
author | samer |
---|---|
date | Wed, 22 Feb 2012 21:24:44 +0000 |
parents | private/randomise.m@0f16c069423b |
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