On Mon, Jun 30, 2008 at 5:50 PM, Brendan Curran
<[EMAIL PROTECTED]> wrote:
> K, just for kicks here's the Java version. Nothing to import....
>
> int max = /** insert max number here **/
> Random generator = new Random();
> int rand = generator.nextInt(max);
>
>
> done.

Done?

Didn't you forget:

        public class MyClass {
                public static void main(String[] args) {
                        ...
                        System.out.println(rand);
                }
        }

;)

Jacob Fugal

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to