Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Greatest common divisor with Random Numbers - HELP PLEASE

843789Nov 21 2009 — edited Nov 21 2009
I want the program to generate N different random int numbers in a limit between [10 - 100], and then the program must tell the greatest common divisor between the first and the last number, second and penultimate number, third and antipenultimate number, and so on, till it cover all the N numbers.

You guys know how to do that in java?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2009
Added on Nov 21 2009
7 comments
358 views