TA的每日心情 | 怒 2019-11-29 15:37 |
|---|
签到天数: 1 天 [LV.1]初来乍到
|
RAND('state',0) resets the generator to its initial state.
; E5 e2 ]# h5 a, S k$ Q# GRAND('state',J), for integer J, resets the generator to its J-th state.
$ ^% F& U7 I5 g4 WRAND('state',J) and RAND('state',S) cause the MATLAB 5 generator to be used.4 P8 J6 b0 K& }, Z" P, c' T7 L: P% z
help 里面解释- _1 r1 R- _+ d' x B
rand('state',s)Resets the state to s.. v# ~2 ?2 @6 ^$ b
rand('state',0)Resets the generator to its initial state. ; C5 N$ ?) C7 h1 ]4 [
rand('state',j)For integer j, resets the generator to its j-th state. |
|