Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

J2me Random Number

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

6 comments so far (post your own) View All Comments Latest 10 Comments:

Project settings saved
Building "RandomNumber"
C:\WTK22\apps\RandomNumber\src\RandomNumber.java:46: cannot find symbol
symbol : method nextfloat()
location: class java.util.Random
float f = number.nextfloat();
^
1 error
com.sun.kvem.ktools.ExecutionException
Build failed
-------------
what's mean?




Posted by tifan on Saturday, 07.25.09 @ 18:16pm | #89597

thanks for this program

Posted by comet on Monday, 07.6.09 @ 20:50pm | #89083

You need to call setSeed() before nextFloat()!

Or set the seed via the Random(...) constructor.

Posted by R on Saturday, 05.16.09 @ 12:33pm | #87756

code of j2me

Posted by faisal ahmed on Friday, 05.15.09 @ 15:05pm | #87738

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().

Posted by Carlos on Monday, 04.13.09 @ 08:17am | #86750

i want to generate the random number 1 to 6.

Posted by raja on Thursday, 01.8.09 @ 07:18am | #83617

Ask programming questions?

 

 

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.