玩猜拳游戏,首先电脑出拳,然后玩家出拳,1-石头,2-剪刀,3-布,看胜、输还是平手。import java.util.*;
public class No11 { /**
 * @param args
 */
public static void main(String[] args) {
// TODO 自动生成方法存根

Scanner input=new Scanner(System.in);
System.out.print("请出拳:");
int people=input.nextInt();
int computer=(int)(Math.random()*10);         //电脑产生0~9随机数;
System.out.println("电脑出拳:"+computer);
switch(people){
case 1: 
switch(computer){
case 1: System.out.println("平手");break;
case 2: System.out.println("你赢了");break;
case 3: System.out.println("你输了");break;
}
break;
case 2: 
switch(computer){
case 1: System.out.println("你输了");break;
case 2: System.out.println("平手");break;
case 3: System.out.println("你赢了");break;
}
break;
case 3: 
switch(computer){
case 1: System.out.println("你赢了");break;
case 2: System.out.println("你输了");break;
case 3: System.out.println("平手");break;
}
break;
default:System.out.println("出拳错误");break;
}
}}不知道怎样产生1,2,3其中的一个数了,该怎么办?