A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
How to create random numbers
Gobinath Manoj
Greenhorn
Joined: Oct 17, 2007
Posts: 11
posted
Dec 11, 2007 00:07:00
0
Hi Friends
How to create 6 digit random number in jsp. And i need that number
converted into gif format. If you have any idea send me. This is very important in my project.
Thanks Regards <br />Gobinath.L
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35443
9
posted
Dec 11, 2007 00:15:00
0
You can use the
java.util.Random
class to generate random numbers. Its nextInt(int) method returns an integer between 0 and the specified upper bound.
This blog entry
talks about how to generate an image containing a specified text.
Android apps
–
ImageJ plugins
–
Java web charts
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: How to create random numbers
Similar Threads
Creating random Unique values
random number question
random number
Arrays
Random number
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter