User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 391,997 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,205 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting

need help asap :)

Join Date: Oct 2005
Posts: 9
Reputation: riabear123 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
riabear123 riabear123 is offline Offline
Newbie Poster

need help asap :)

  #1  
Oct 13th, 2005
Here is the program requirement and I need the most simple method since i am a beginner

and this is what i have so far

import java.util.Random;
class Lotto
{
public static void main (String[] args)
{
Random r = new Random();
int mynums[] = {6, 25, 31, 15, 42};
int lotto[] = {r.nextInt(49)+1, r.nextInt(49)+1, r.nextInt(49)+1, r.nextInt(49)+1, r.nextInt(49)+1, r.nextInt(42)+1};
int match;
Attached Files
File Type: doc Lotto.doc (25.0 KB, 14 views)
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 10:00 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC