javascript 一条语句实现随机数语句

alert(Math.round(Math.random()*10000));

WScript为var WshShell = WScript.CreateObject("WScript.Shell"); WshShell.popup(Math.round(Math.random()*10000));

网上看到的这条语句.

你可能感兴趣的:(javascript 一条语句实现随机数语句)