Generating N-digit random number?

Hi All,I need to generate N-digit random number...is there anyone can help me?Thx b4 in advance..
[118 byte] By [abanka] at [2007-11-26 17:28:19]
# 1
Have a look at the java.util.Random class: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Random.html
prometheuzza at 2007-7-8 23:56:14 > top of Java-index,Java Essentials,New To Java...
# 2
Great, a cross-post.Continued here: http://forum.java.sun.com/thread.jspa?threadID=5133112
prometheuzza at 2007-7-8 23:56:14 > top of Java-index,Java Essentials,New To Java...
# 3
use Math.random() that will give u random number
debduttaa at 2007-7-8 23:56:14 > top of Java-index,Java Essentials,New To Java...
# 4
What was wrong with my solution? That's the last time I hand out one of those...
CaptainMorgan08a at 2007-7-8 23:56:14 > top of Java-index,Java Essentials,New To Java...
# 5
> What was wrong with my solution? That's the last> time I hand out one of those...It's completely untested, that's what's wrong with it.
CaptainMorgan08a at 2007-7-8 23:56:14 > top of Java-index,Java Essentials,New To Java...