JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
Raffle Drawer VERSION 2.0
My raffle drawer for members of my Pooling Club originally written in C.
Credits to SoloLearn Community members - Alexander Kozhaev and Tobi whose advice in comments I used along with StackOverflow to get this version.
What's new?
1. Version 2.0 has removed the limit on number of members handled.
2. Less bulky code.
*/
import java.util.Scanner;
public class RaffleDrawer
{
public static void main(String[] args) throws Exception {
//Members raffle drawer
Scanner input = new Scanner(System.in);
System.out.println("How many members are present?");
int number = input.nextInt();
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run