Home Tutorialhelp Comment J2ME - Random().NextFloat(). Is there a bug?

 
 

Comment

Carlos
J2ME - Random().NextFloat(). Is there a bug?,
April 13, 2009 at 8:17 AM

I've analysed the numbers generated by J2me Random.NextFloat() with Arena's Input Analyzer utilit in order to know if we can trust that the output data fit a uniformly distributed float value between 0.0 and 1.0. However, it seems that usually the sample fit the Beta Distribution. I've succesfull generated uniformly distributed sample by using .NextDouble() instead of .NextFloat().
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Advertisements Advertisements
 

 

 

DMCA.com