Random state from a continuous space. Generates a random point in the bounds of the given continuous space sampling with uniform probability.
0001 function v=rand(CS) 0002 % Random state from a continuous space. 0003 % 0004 % Generates a random point in the bounds of the given continuous space 0005 % sampling with uniform probability. 0006 % 0007 v=CS.min+rand(CS.dim,1).*CS.range; 0008