randrand.m

来自「马尔可夫链」· M 代码 · 共 13 行

M
13
字号
% RANDRAND - Reset both Random Number Generator Seeds to the clock% Copyright (c) 1998, Harvard University. Full copyright in the file Copyright% % Note: there are two random number generators in Matlab % one for normals and one for everything else.% For reseting the normal random seed use  randn('state', ...)% and for all others use rand('state, ...).%% This program initializes both off the system clock.%randn('state',sum(100*clock)) ;rand('state',sum(100*clock)+10*normrnd(0,1,1,1)^2) ;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?