You are viewing a single comment's thread from:

RE: update for beem: create posts more easily and draw pseudo-random numbers

in HiveDevs4 years ago

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.

Sort:  

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 ','
keyvalue
block number43908154
trx id52840f5017464772a9a940a6ecfeb268d0a95def
block id029dfc3a5273dd08bd9ada6426205ac7c5d1dd0c
previous id029dfc39a4961c8b6dc21da20c7b8d598e963dc8
hash typesha256
draws3
participants100
1. draw79
2. draw82
3. draw97