Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create random numbers  RSS feed

 
Gobinath Manoj
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!