Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Random generator = new Random();
- int i = generator.nextInt(1);
- if (parts[4].contains("Red"))
- {
- if (i==0)
- colour = "Green";
- else
- colour = "Blue";
- }
- if (parts[4].contains("Green"))
- {
- if (i==0)
- colour = "Blue";
- else
- colour = "Red";
- }
- if (parts[4].contains("Blue"))
- {
- if (i==0)
- colour = "Red";
- else
- colour = "Green";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement