random - Setting the seed for betarnd() in Matlab 2014b -


i trying set seed betarnd() every time re-run code, use same values generated betarnd(). in previous version of matlab on else's computer, suffices do

randn('seed', num) rand('seed', num) 

and can same set of random values sampled beta distribution each time betarnd(0.5,0.5,[1,15]) run, instance. however, in case, although set seeds shown above, different values. causing discrepancy? , how can resolve it?

matlab changed policies , syntaxes since version 2014. have @ explanation page. basically, can set seed using rng(sd) before using function rand or randn usual.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -