Add `random()` and `random_seed()`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Inizia dalle pagine di riferimento di random() e randomSeed() collegate nell’issue, quindi individua i corrispondenti punti di ingresso della Processing API in libprocessing. Implementa entrambe le funzioni con il comportamento documentato per uno e due parametri e un output deterministico con un seed, quindi verifica che l’API risultante corrisponda a questi esempi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 69
- Fork
- 14
- Merge medio
- 15g 22h
- PR unite (30g)
- 3
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di processing/libprocessing
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
processing/libprocessing#233 ·
-
Dropping Python 3.10 support Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
processing/libprocessing#229 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
processing/libprocessing#201 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
processing/libprocessing#194 ·
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
processing/libprocessing#146 · 1 commento ·
Tutte le issue di processing/libprocessing
Issue simili
-
todo:perf
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
ACP agents get no MCP servers when the thread is created before the project's first worktree loads Apertastate:needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
zed-industries/zed#64611 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
ontola/atomic-server#1625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
objectionary/phie#154 ·