Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Argument is neither a positive integer nor a positive float: 0 #23

Open
maruks opened this issue May 10, 2019 · 1 comment
Open

Comments

@maruks
Copy link

maruks commented May 10, 2019

This generator doesn't work:

(generator
(chain ((n (integer 3 18)))
(generator (tuple
(list (integer 1 75) :length n)
(list (integer 0 (1- n)) :length (* 2 n))))))

generators.lisp calls random with 0 argument
211: (random (- (min (1+ max-length) list-size) min-length)))))

Argument is neither a positive integer nor a positive float: 0
[Condition of type SIMPLE-TYPE-ERROR]

@maruks
Copy link
Author

maruks commented May 11, 2019

it works only if I do (let ((list-size 60)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant