OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | clif List | June 2008 Index

<--  Date Index  --> <--  Thread Index  -->

[clif] RE : Random setUniform out of range


Ok i found :
 
public long nextUniform(int min, int max)
 {
  return min + nextInt(max);
 }
 
max isn't the maximum value ...
 
for the range [401,500] min =401 max=99
 
is it alright ?
 
Marc

De: zze-Rubics DESPLAND M ext RD-SIRP-REN
Date: lun. 23/06/2008 17:22
À: clif@xxxxxxx
Objet : [clif] Random setUniform out of range

 Erf,
 
An other problem
 
I use a random generator to produce a number in the range [401;500]
 
    <control use="userid" name="setUniform">
          <params>
            <param name="min" value="401"></param>
            <param name="max" value="500"></param>
          </params>
        </control>
this is used to construct an uri for the httpInjector :
<param name="uri" value="