Initial commit
Test (in pplus-core) / in-core (push) Failing after 28m44s

This commit is contained in:
alexm committed 2026-11-12 22:23:48 -05:00
commit 568474d52f
1591 files changed
+528213

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
// Randomness: RANDINT in a loop and a tally; the lab seeds its random numbers so a run repeats.
// EXPECT: 100
DECLARE Tally : ARRAY[7] OF INTEGER
DECLARE Total : INTEGER
FOR F <- 0 TO 7
Tally[F] <- 0
NEXT F
FOR Roll <- 0 TO 100
DECLARE Face : INTEGER
Face <- RANDINT(1, 7)
Tally[Face] <- Tally[Face] + 1
NEXT Roll
Total <- 0
FOR F <- 1 TO 7
Total <- Total + Tally[F]
NEXT F
OUTPUT Total