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
Related Tutorial and Articles

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.