Your hive draw looks a lot more sophisticated than the one I made.
It should proove to be very useful
I'll have to give it a try soon.
One thing I noticed is you don't add +1 after calculating the modulo.
So it looks like you are calculating from 0 to n-1 with position 1 actually being 0. That or it is impossible for the top number to be called. I know you called .len but I'm not sure exactly how it works (I'm still just really noob).
The following results can be checked with:
beempy draw -d 5 -p 2 -b 43903393 -t 15bc57129f215b93857eeea7935538d56b1a9223 -h sha256 -s ','
As you can see the last position will also be called.
I'm just added +1 to all numbers. So the number are going from 1 to
participants
.That's an easy way to check and to flip a coin.
The following results can be checked with:
beempy draw -d 3 -p 100 -b 43908154 -t 52840f5017464772a9a940a6ecfeb268d0a95def -h sha256 -s ','