Add `random()` and `random_seed()`
まだ誰も着手していません。
評価
調査の方向性
Issue にリンクされている random() と randomSeed() のリファレンスページから始め、次に libprocessing 内で対応する Processing API のエントリーポイントを見つけます。ドキュメントに記載された1引数および2引数の動作と、シード指定時の決定論的な出力を備えるように両方の関数を実装し、結果の API がこれらの例と一致することを確認します。
索引モデルが issue の本文から書いたものです。
説明
From the random() reference page:
Generates random numbers. Each time the
random()function is called, it returns an unexpected value within the specified range. If only one parameter is passed to the function, it will return a float between zero and the value of the high parameter. For example,random(5)returns values between 0 and 5 (starting at zero, and up to, but not including, 5).If two parameters are specified, the function will return a float with a value between the two values. For example,
random(-5, 10.2)returns values starting at -5 and up to (but not including) 10.2. To convert a floating-point random number to an integer, use theint()function.
From the randomSeed() reference page:
Sets the seed value for
random(). By default, random() produces different results each time the program is run. Set the seed parameter to a constant to return the same pseudo-random numbers each time the software is run.
- 主要言語
- Rust
- スター
- 69
- フォーク
- 14
- 平均マージ
- 15日 22時間
- マージ済み PR(30日)
- 3
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
processing/libprocessing のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
processing/libprocessing#233 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
processing/libprocessing#229 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
processing/libprocessing#201 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
processing/libprocessing#194 ·
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
processing/libprocessing#146 · コメント 1 件 ·
processing/libprocessing の issue をすべて見る
似ている issue
-
todo:perf
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
ACP agents get no MCP servers when the thread is created before the project's first worktree loads オープンstate:needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
zed-industries/zed#64611 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ontola/atomic-server#1625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
objectionary/phie#154 ·