【文件属性】:
文件名称:alea-random:`lodash.random`但使用Alea
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-13 21:06:09
JavaScript
随机
lodash.random但使用代替Math.random 。
例子
var aleaRandom = require ( 'alea-random' ) ;
aleaRandom ( 0 , 5 ) ;
// => an integer between 0 and 5
aleaRandom ( 5 ) ;
// => also an integer between 0 and 5
aleaRandom ( 5 , true ) ;
// => a floating-point number between 0 and 5
aleaRandom ( 1.2 , 5.2 ) ;
// => a floating-point number between 1.2 and 5.2
安装
$ npm install alea-random
原料药
var aleaRandom = requi
【文件预览】:
alea-random-master
----.gitignore(40B)
----.renovaterc.json(36B)
----package.json(1KB)
----.npmrc(21B)
----index.js(2KB)
----CHANGELOG.md(1KB)
----LICENSE.txt(1KB)
----.github()
--------workflows()
--------dependabot.yml(134B)
----.eslintrc.js(42B)
----README.md(894B)
----.releaserc.json(301B)
----.gitattributes(19B)
----test()
--------index.js(3KB)