comparison 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
comparison
equal deleted inserted replaced
5:80e9103b057f 6:0f16c069423b
1 function s=randomise
2 % randomise - get entropy from time and reset random number generators
3
4
5 m=[5000,700000,1000000,1000000,1000000,10000000];
6 rand('state',sum(m.*clock));
7 randn('state',sum(m.*clock));
8 if nargout>0,
9 s=getrndstate;
10 end
11