... in the range [0..r-1]. int random(int r) { } return (int) (Math .floor(Math . random()*r)) ; Sometimes code is ... Don't comment bad code, rewrite it.
確定! 回上一頁