stdlib-js / stdlib-js/stdlib

[RFC]: Add `@stdlib/random/array/randi`

未关闭
#864 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
difficulty: 3 Feature JavaScript priority: High RFC status: Blocked
主要语言
JavaScript
星标
6k
派生
1.3k
平均合并
1 天 3 小时
30 天内合并 PR
611

描述

### Description

This RFC proposes adding support for creating an array of random integers with the option to select the underlying PRNG. This is the array creation analog of `@stdlib/random/base/randi`.

Package: `@stdlib/random/array/randi`
Alias: `randi`

### Related Issues

None.

### Questions

No.

### Other

- A package with a similar implementation/API design is [`@stdlib/random/array/randu`](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/array/randu).

### Checklist

- [X] I have read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [X] Searched for existing issues and pull requests.
- [X] The issue name begins with `RFC:`.

贡献指南

打开贡献指南

调研方向

Compare the proposed @stdlib/random/array/randi package with the existing lib/node_modules/@stdlib/random/array/randu implementation and the @stdlib/random/base/randi API. The work is done when the new package creates arrays of random integers and supports selecting the underlying PRNG with an API consistent with randu.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
data
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。