Mercurial > hg > trimatlab
view private/randomise.m @ 6:0f16c069423b
Added randomise.m to provide random init; also added minimum radius to mt_get_transmat_near
author | samer |
---|---|
date | Mon, 06 Feb 2012 15:55:08 +0000 |
parents | |
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