LoginSignup
3
0

More than 5 years have passed since last update.

10桁のランダムな16進数を生成する

Last updated at Posted at 2017-11-21

コード

("000000000" + parseInt((Math.random() * 1099511627775), 10).toString(16)).substr(-10);

つかいみちあんの?

二度とないとおもう。

3
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
3
0