input的值:

value.toUpperCase();//value.toUpperCase()把字符窜转换为大写

 

random方法:

Math.floor对数字向下舍入

Math.random() 从0到1之间

 

toString()把数字改成字符串