0
0

More than 3 years have passed since last update.

javascript random, floor 使い方メモ

Last updated at Posted at 2021-08-17

javascript -- random, floor 使い方メモ --,

Math.random()

0以上1未満の浮動小数点の乱数を返す。

Math.floor()

引数に与えた数字以下の最大の整数を返す。

参考サイト元

https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Math/random

https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Math/floor

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0