You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create shared internal helper logic for random utility operations.
5
+
Add a nondeterministic `Random` utility with the same public convenience API shape as `RandomSeed`.
6
6
7
7
## Source Of Truth
8
8
9
-
This `BUILD_PR.md`, `PLAN_PR.md`, the user request, and `docs_build/dev/ProjectInstructions.zip` are the source of truth for `PR_26177_DELTA_053-random-shared-helpers`.
9
+
This `BUILD_PR.md`, `PLAN_PR.md`, the user request, and `docs_build/dev/ProjectInstructions.zip` are the source of truth for `PR_26177_DELTA_054-random-utility`.
10
10
11
11
## OWNER Override And Team Assignment
12
12
13
-
OWNER override approved: Continue Team Delta random utility stack with `PR_26177_DELTA_053-random-shared-helpers`.
13
+
OWNER override approved: Continue Team Delta random utility stack with `PR_26177_DELTA_054-random-utility`.
14
14
15
15
Team Delta owns Shared JS, runtime utilities, technical debt remediation, and runtime test coverage.
16
16
17
+
## Stack
18
+
19
+
- Base branch: `PR_26177_DELTA_053-random-shared-helpers`
20
+
- This PR depends on the internal random helper module from PR_053.
21
+
17
22
## Exact Scope
18
23
19
-
- Add internal/shared helper functions for:
20
-
-`nextInt(randomNext, min, max)`
21
-
-`nextFloat(randomNext, min, max)`
22
-
-`pick(randomNext, array)`
23
-
-`shuffle(randomNext, array)`
24
-
-`chance(randomNext, percent)`
25
-
-`weightedPick(randomNext, weightedItems)`
26
-
- Helper must consume a `randomNext` function returning float `>= 0` and `< 1`.
27
-
- Do not expose this as Creator-facing API.
28
-
- Do not change existing `RandomSeed` behavior.
24
+
- Add `Random` utility.
25
+
- Include:
26
+
-`Random.next()`
27
+
-`Random.nextInt(min, max)`
28
+
-`Random.nextFloat(min, max)`
29
+
-`Random.pick(array)`
30
+
-`Random.shuffle(array)`
31
+
-`Random.chance(percent)`
32
+
-`Random.weightedPick(weightedItems)`
33
+
-`Random.uuid()`
34
+
- Prefer `crypto.getRandomValues()` when available.
35
+
- Use `Math.random()` only as compatibility fallback.
36
+
- No deterministic seed support in `Random`.
37
+
- No browser storage.
38
+
- No UI changes.
39
+
- Add JSDoc.
29
40
- Add targeted unit tests.
30
41
- Create required Codex reports under `docs_build/dev/reports/`.
31
42
- Create repo-structured delta ZIP under `tmp/`.
@@ -36,21 +47,21 @@ Team Delta owns Shared JS, runtime utilities, technical debt remediation, and ru
Copy file name to clipboardExpand all lines: docs_build/dev/ProjectInstructions/team_assignments/ACTIVE_TEAM_REGISTRY.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ If a team has no assignment, no active branch, and no active PR, it is inactive
31
31
| Team Alfa | none | none | none | Available | Active ownership lane |
32
32
| Team Bravo | none | none | none | Available | Active ownership lane |
33
33
| Team Charlie | none | none | none | Available | Active ownership lane |
34
-
| Team Delta |PR_26177_DELTA_053-random-shared-helpers|PR_26177_DELTA_053-random-shared-helpers|PR_26177_DELTA_053-random-shared-helpers| Active | OWNER override approved: Continue Team Delta random utility stack with PR_26177_DELTA_053-random-shared-helpers|
34
+
| Team Delta |PR_26177_DELTA_054-random-utility|PR_26177_DELTA_054-random-utility|PR_26177_DELTA_054-random-utility| Active | OWNER override approved: Continue Team Delta random utility stack with PR_26177_DELTA_054-random-utility|
35
35
| Team Golf | none | none | none | Available | Replacement active ownership lane for retired Team Gamma |
36
36
| Team OWNER | none | none | none | Available | Governance Phase 1 complete |
0 commit comments