Mercurial > hg > trimatlab
annotate private/randomise.m @ 8:e1534c7329e2
FIX: missing end
author | samer |
---|---|
date | Mon, 13 Feb 2012 11:21:15 +0000 |
parents | 0f16c069423b |
children |
rev | line source |
---|---|
samer@6 | 1 function s=randomise |
samer@6 | 2 % randomise - get entropy from time and reset random number generators |
samer@6 | 3 |
samer@6 | 4 |
samer@6 | 5 m=[5000,700000,1000000,1000000,1000000,10000000]; |
samer@6 | 6 rand('state',sum(m.*clock)); |
samer@6 | 7 randn('state',sum(m.*clock)); |
samer@6 | 8 if nargout>0, |
samer@6 | 9 s=getrndstate; |
samer@6 | 10 end |
samer@6 | 11 |