import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Scanner;
public class Demo01 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("please input your id in [0~500) :"); //输入自己的工号
int your_id = scanner.nextInt();
System.out.println("input the total number of employees in the company:"); //输入公司总人数
int total_employees = scanner.nextInt();
System.out.println("input the number of who can win the first prize:"); //输入可中一等奖的人数
int first_prize = scanner.nextInt();
System.out.println("input the number of w" +
"ho can win the second prize:"); //输入可中二等奖的人数
int second_prize = scanner.nextInt();
int prize = 3; //自己中奖的初始等级为3
int[] intRandom = new int[total_employees]; //定义全员工的数组,用来存储随机的数字
java幸运轮代码(员工抽奖)
于 2023-01-25 22:35:19 首次发布