var ran_num=Math.random();. Then you can use the value in variable ran_num with the above formula to get the result. Below is an example of an integer result ...
確定! 回上一頁