Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //1's=$5
- //2's=$10
- //3's=$25
- //4's=$50
- //5's=$100
- //public static void genNums(int[] slots) - generate the random numbers
- //public static int winnings(int[] slots) - returns the winnings of the slots.
- {
- import java.util.Scanner;
- import java.util.Random;
- public class slotmachine
- {
- public static void main(String args[])
- {
- int userMoney;
- int slot1[] = new int[3];
- char playmore;
- slot1 = slotnumber
- //char playmore = input.nextChar().charAt(0);
- Scanner input = new Scanner;
- System.out.print("How much money to start with?");
- usermoney = input.nextInt();
- if (userMoney > 0 || )
- {//spin
- }
- }
- public static void genNums(int[] slots)
- {
- Random randGen = new Random();
- int slotnumber[] = new int[3];
- slotnumber[1] = randGen.nextInt(5) +1;
- slotnumber[2] = randGen.nextInt(5) +1;
- slotnumber[3] = randGen.nextInt(5) +1;
- return slotnumber[];
- }
- public static void winnings(int[] slots)
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement