Mercurial > hg > trimatlab
view private/randomise.m @ 9:cc549aca4ea6
Added optional shuffling of Markov chain symbols.
author | samer |
---|---|
date | Mon, 20 Feb 2012 13:39:30 +0000 |
parents | 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