![]() |
randPURPOSE
Random state from a discrete space.
SYNOPSIS
function v=rand(DS)
DESCRIPTION
Random 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 INFORMATION
This function calls:
SOURCE CODE
0001 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 |