|
-
July 3rd, 2005, 12:08 AM
#1
-
July 5th, 2005, 06:38 AM
#2
Re: Basic question on random
you can use Math.random() which returns a number n such that 0 <= n < 1
or you can use the Random class, which provides for better control of random sequences, ranges, and ability to repeat a sequence
http://java.sun.com/j2se/1.4.2/docs/...il/Random.html
-
July 5th, 2005, 06:50 PM
#3
Re: Basic question on random
There's an option, when you install the J2SE SDK, to also include the source code for the Java library during installation. After installation, open the zip file called src.zip in the folder where you chose to install SDK.
Hungarian notation, reinterpreted? http://www.joelonsoftware.com/articles/Wrong.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|