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