You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rnd0, rnd1, rnd2 got a wrong number rnd0 and rnd1 should be a random int with c.n bit, but this give 0 < x < c.n rnd2 using val rnd2 = rnd.nextInt(1) always give 0
and the except io.Cout using rsum % 1 get always 0
because the rnd0 and rnd1 is too small, so the test always success
That's a good catch @WindProphet, thanks. I have submitted PR #118
which implements your suggestion. Please feel free to submit a PR for this
sort of thing. We welcome contributions.
rnd0
,rnd1
,rnd2
got a wrong numberrnd0
andrnd1
should be a random int withc.n
bit, but this give0 < x < c.n
rnd2
usingval rnd2 = rnd.nextInt(1)
always give0
and the except
io.Cout
usingrsum % 1
get always0
because the
rnd0
andrnd1
is too small, so the test always successI suggest using
The text was updated successfully, but these errors were encountered: