From 498c73abfc315928bbbc991ca48b094b597f22c9 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 8 Jul 2021 20:24:21 -0400 Subject: Use random.Subset instead of Deal --- test/fuzz.bqn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fuzz.bqn b/test/fuzz.bqn index 571502fd..dd1d3b57 100644 --- a/test/fuzz.bqn +++ b/test/fuzz.bqn @@ -29,7 +29,7 @@ Any number of types or bounds can be given; all combinations are tested." Squeeze‿ListVariations‿Variation‿ClearRefs ← •internal -⟨Range,Deal⟩ ← •MakeRand 2 +⟨Range,Subset⟩ ← •MakeRand 2 Rand ← {𝕨 Range 1⌈𝕩} _randChoose ← { Rand∘(≠𝕗)◶𝕗 } _randUnbounded ← { 𝕊⊸+⍟(1=-)⟜Rand 𝕗 } @@ -48,7 +48,7 @@ RandRank ← 4 _randUnbounded Sigmoid ← (40≤|)◶⟨1(-÷+)˜⋆,×⟩ # 𝕨 positive (not zero) integers summing to 𝕩 -RandPart ← ¯1 (⊢-») (∧∘Deal∾⊢)○(-⟜1) +RandPart ← ¯1 (⊢-») (Subset∾⊢)○(-⟜1) # 𝕩 is maximum bound plus 1 for both functions ⟨RandBound,RandShape⟩ ← { -- cgit v1.2.3