All participants select their own random whole number and publish it to the group. All participants add all the numbers together. The result is either odd or even (heads/tails) and everyone arrives at the same result independently.
The last person would still decide the outcome. They could keep choosing values for whatever function until it produces their desired result and then post that.
What you would want instead is for everyone to post a (salted) hash, and after the hashes are posted, reveal what the original numbers were and then publicly add them. Everyone could verify everyone else’s numbers against those hashes.
All participants select their own random whole number and publish it to the group. All participants add all the numbers together. The result is either odd or even (heads/tails) and everyone arrives at the same result independently.
The last person to send the number decide the outcome
It doesn’t have to be addition. It could be a hash function, etc.
The last person would still decide the outcome. They could keep choosing values for whatever function until it produces their desired result and then post that.
What you would want instead is for everyone to post a (salted) hash, and after the hashes are posted, reveal what the original numbers were and then publicly add them. Everyone could verify everyone else’s numbers against those hashes.
If the function is known by all parties then the last person to send still has control