getrand
| getrand | 
  Purpose
 
 
 Returns a value at random (uniform distribution) in the domain of the variable passed in argument.
 
 
  Synopsis
 
 function getrand(x:cpvar) : integer
 function getrand(x:cpfloatvar) : real
 
  Argument
 
 | 
     x 
     | 
     the decision variable
     | 
  Return value
 
 
 A random value in the domain of x
 
  Example
 
 
 The following example shows how to get a random value in the domain a cpvar
 x
 
 r:=getrand(x)
  Related topics
 
  
