If you wanted something to occur based on a probability of say 40% in a Java game or simulation, then you could use the Math.random method like this
確定! 回上一頁