-
Notifications
You must be signed in to change notification settings - Fork 106
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
StdGen.genRange seems to have wrong value #292
Comments
grigorye
changed the title
StdGen.genRange seem to have wrong value
StdGen.genRange seems to have wrong value
Aug 5, 2019
Honestly, |
Started 2d3b562 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SwiftCheck/Sources/SwiftCheck/Random.swift
Lines 84 to 86 in 9e53d13
I wonder if it should be
(1, 2147483562)
or something like that (sorry, I have hard time figuring the exact numbers out). I mean, even though the type of the value produced bynext
isInt
, the actual value is defined by the algorithm that operates in subdomain of 32-bit numbers.The text was updated successfully, but these errors were encountered: