Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Arvin iuunhao
Added: Jun 18, 2018 8:42 AM
Views: 13
Tags: js
在指定的范围内生成一个随机整数
  1. const randomIntegerInRange = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;