commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <gil...@harfang.homelinux.org>
Subject [Math] "RandomDataGenerator.nextInt" vs "UniformIntegerDistribution.sample"
Date Thu, 25 Jul 2013 11:50:44 GMT
Hi.

The classes
   RandomDataGenerator
and
  UniformIntegerDistribution
use different codes for providing random integers in a range.

Shouldn't the same code be used in both?
Are both equally valid on the whole integer range?


Regards,
Gilles

[1] Or better (IMO) shouldn't "RandomDataGenerator" be a client
     of "UniformIntegerDistribution"?


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message