Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Retric
· 8y ago · 0 comments
Depends on the maximum range provided. If both part's pick a X bit number then you need a power of 2. If they pick a number 1 to X then can use X.
Comments
[–]
fyi1183
8y ago
You're right of course. Just remember to use addition mod X instead of xor in that case to combine the choices.