Global Feed Post Login
Replying to Avatar ben

recently had a conversation about the us powerball lottery and why im not interested in playing; it depends on a bunch of trusted third parties.

that sounded familiar and sparked an idea for a trust-less implementation:

1. take a Block Hash: 0000000000000000000a1b2c3d4e5f...

2. convert hash to integer and use as rng seed

3. Call rand.IntN(69) five times → White balls: 7, 23, 45, 58, 62

4. Call rand.IntN(26) once → Powerball: 18

someone build this on nostr with zaps.

Avatar
ben 3mo ago

nostr:nprofile1qqsqfjg4mth7uwp307nng3z2em3ep2pxnljczzezg8j7dhf58ha7ejgprpmhxue69uhhqun9d45h2mfwwpexjmtpdshxuet5qyvhwumn8ghj7um9dejxjapwdehhxenvv9ex2tnrdaksepv2a6 maybe your next vibed coded app?

Reply to this note

Please Login to reply.

Discussion

No replies yet.