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
Add a reusable shared JavaScript `RandomSeed` utility for deterministic seeded random sequences.
5
+
Create shared internal helper logic for random utility operations.
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_052-random-seed-utility`.
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`.
10
10
11
11
## OWNER Override And Team Assignment
12
12
13
-
OWNER override approved: Assign Team Delta `PR_26177_DELTA_052-random-seed-utility`.
13
+
OWNER override approved: Continue Team Delta random utility stack with `PR_26177_DELTA_053-random-shared-helpers`.
14
14
15
15
Team Delta owns Shared JS, runtime utilities, technical debt remediation, and runtime test coverage.
16
16
17
17
## Exact Scope
18
18
19
-
- Add reusable shared JavaScript utility class named `RandomSeed`.
20
-
- Constructor accepts an initial seed.
21
-
- Include:
22
-
-`seed(value)`
23
-
-`next()`
24
-
-`nextInt(min, max)`
25
-
-`nextFloat(min, max)`
26
-
-`pick(array)`
27
-
- Same seed must reproduce the same sequence after reseeding.
28
-
- Different seeds should produce different sequences.
29
-
- Add JSDoc.
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.
30
29
- Add targeted unit tests.
31
-
- Do not replace existing `Math.random()` usage.
32
-
- No UI changes.
33
-
- No browser storage.
34
-
- No API/database changes.
35
-
- No unrelated cleanup.
36
30
- Create required Codex reports under `docs_build/dev/reports/`.
37
31
- Create repo-structured delta ZIP under `tmp/`.
38
32
@@ -42,25 +36,26 @@ 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_052-random-seed-utility|PR_26177_DELTA_052-random-seed-utility|PR_26177_DELTA_052-random-seed-utility| Active | OWNER override approved: Assign Team Delta PR_26177_DELTA_052-random-seed-utility|
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|
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