aboutsummaryrefslogtreecommitdiff
path: root/test/rng.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-05 18:20:54 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-03-05 18:20:54 -0500
commit147e0f0269440fce15d6b88a8a90627f3a3b2df2 (patch)
treebc33522ba71b5a2996fae22e102cce5046cf1333 /test/rng.tm
parent2c4324670ff569ede360d13875c5e4b5720a626d (diff)
Overhaul of constructors, making it more consistent and correct. Also
changed T(), T, T_t, T_s type names to T(), T$$info, T$$type, T$$struct for unambiguity
Diffstat (limited to 'test/rng.tm')
-rw-r--r--test/rng.tm2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rng.tm b/test/rng.tm
index 6c38caad..fe3d9f75 100644
--- a/test/rng.tm
+++ b/test/rng.tm
@@ -36,5 +36,5 @@ func main():
= [30, 50, 100, 20, 90, 10, 80, 40, 70, 60]
>> nums:random(rng=rng)
= 70
- >> nums:sample(10, weights=[1.0/i for i in nums.length], rng=rng)
+ >> nums:sample(10, weights=[1.0/Num(i) for i in nums.length], rng=rng)
= [10, 20, 10, 10, 30, 70, 10, 40, 60, 80]