randPURPOSERandom state from a discrete space.
SYNOPSISfunction v=rand(DS)
DESCRIPTIONRandom state from a discrete space. Selects one of the possible values of the given discrete space randomly with uniform probability. See also DSpace. CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function v=rand(DS) 0002 % Random state from a discrete space. 0003 % 0004 % Selects one of the possible values of the given discrete space randomly 0005 % with uniform probability. 0006 % 0007 % See also DSpace. 0008 0009 v=ceil(rand*DS.max); 0010 |