Mercurial > hg > trimatlab
changeset 10:bce0bd672b47
randomise.m is now public
author | samer |
---|---|
date | Wed, 22 Feb 2012 21:24:44 +0000 |
parents | cc549aca4ea6 |
children | 0e0f2805ef9c |
files | private/randomise.m randomise.m |
diffstat | 2 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/private/randomise.m Mon Feb 20 13:39:30 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -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 -
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/randomise.m Wed Feb 22 21:24:44 2012 +0000 @@ -0,0 +1,11 @@ +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 +