2017-09-05から1日間の記事一覧
Math.randomの使い方 Math.random()は、0〜0.9999...(1未満)の間から、1つの数値をランダムで返す。0は含むが、1は含まない。 ★Math.round Math.round()は、小数点以下を四捨五入する。整数を取得したい場合に利用。 ★Math.ceil Math.ceil()は、小数点以下を…
Math.randomの使い方 Math.random()は、0〜0.9999...(1未満)の間から、1つの数値をランダムで返す。0は含むが、1は含まない。 ★Math.round Math.round()は、小数点以下を四捨五入する。整数を取得したい場合に利用。 ★Math.ceil Math.ceil()は、小数点以下を…