没有合适的资源?快使用搜索试试~ 我知道了~
random-uint-below.js:一种在Javascript中选择随机整数的无偏方式。 尽可能使用crypto.getR...
共17个文件
ts:6个
json:3个
md:2个
需积分: 5 1 下载量 192 浏览量
2021-04-05
14:49:56
上传
评论
收藏 58KB ZIP 举报
温馨提示
random-uint-below 用法 import {randomUIntBelow} from "random-uint-below" `randomUIntBelow(max)` returns a random non-negative integer less than max `(0 <= output < max)`. `max` must be at most 2^53. randomUIntBelow(4); // Generates a uniform random value from [0, 1, 2, 3]. 由于最常见的用例之一是从数组中选择一个随机元素,因此我们也提供了一个便利: import {randomChoice} from "random-uint-below" randomChoice(["vanilla", "strawberry", "pe
资源推荐
资源详情
资源评论
收起资源包目录
random-uint-below_js-main.zip (17个子文件)
random-uint-below.js-main
.gitignore 36B
package.json 991B
Makefile 323B
package-lock.json 151KB
src
get-random-values.ts 810B
get-random-values.d.ts 58B
random-int.ts 2KB
index.ts 94B
random-choice.ts 443B
LICENSE.md 35KB
webpack.config.js 2KB
.travis.yml 89B
tsconfig.json 345B
README.md 558B
.npmignore 141B
test
html
index.html 132B
test.ts 804B
共 17 条
- 1
资源评论
小旗旗
- 粉丝: 24
- 资源: 4557
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功