Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create random numbers

 
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: 42968
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