aspose file tools*
The moose likes Beginning Java and the fly likes Randomly generate a string of number? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Randomly generate a string of number?" Watch "Randomly generate a string of number?" New topic
Author

Randomly generate a string of number?

Nico Yukiko
Greenhorn

Joined: Aug 24, 2005
Posts: 21
how to generate a six digit number?
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

Nico Yukiko
Greenhorn

Joined: Aug 24, 2005
Posts: 21
but how can i call it in the servlet??
if this is in the same class as the servlet
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Have the appropriate service method (doGet() or doPost(), for example) call the the random-number generating method; that's all there is to it.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Randomly generate a string of number?