fix some random generators broken when refactoring things to improve contract-stronger?

This commit is contained in:
Robby Findler 2014-10-01 21:43:24 -05:00
parent b946d4639e
commit 7aa4c94b9b

View File

@ -396,7 +396,7 @@
(λ (fuel)
(λ ()
(rand-choice
[1/10 -inf.0]
[1/10 (-/+ +inf.0)]
[1/10 (-/+ x 0.01)]
[4/10 (-/+ x (random))]
[else (-/+ x (random 4294967087))]))))
@ -470,7 +470,7 @@
(λ ()
(let loop ([so-far (if (pe-listof-ctc? ctc)
'()
(list eg))])
(list (eg)))])
(rand-choice
[1/5 so-far]
[else (loop (cons (eg) so-far))])))