Feβπ¦ββ
Hβπ¦ on Nostr: d symptoms of using the rand() call because they didn't know any better. Tip though ...
d (npub15fkβ¦j9gr) symptoms of using the rand() call because they didn't know any better.
Tip though of you ever want to put RNG and stuff you do: you really need to put in anti-streak mechanisms. The way I do it is that I have the outcomes have counters and each time you get that outcome it gets some percentage less likely that you'll get that outcome, changing the weights each time.
So of you start with A/B with a 50/50 chance, of you hit A the offs next time will be 45/55, then hit A -> 40/60, then hit B -> 45/55. That makes it no longer true random but computer RNG does not at all resemble real life probability in the short term and this is a smoke and mirrors fix for it.
Note that this is bad for security it just feels good.
Published at
2023-08-09 13:15:36Event JSON
{
"id": "4956bbb8269a9b08ad8d46b5c4ece49544bf4279f609e14ff36f26ed8d97de98",
"pubkey": "26976d1f3f3270311c86a59315751d66bd770aa35a929529271fca721afee1af",
"created_at": 1691586936,
"kind": 1,
"tags": [
[
"p",
"a26d9180040977fbfa673374da58b057b2be33bd1b2615301969e2d7171a7c42",
"wss://relay.mostr.pub"
],
[
"e",
"de20f4b2c6be30d76c27137faa14d47af60373f90ce8cd8b7173f97c8f7e0213",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://clubcyberia.co/objects/db418ea6-4ac6-4768-ade4-fd1b23a7aa65",
"activitypub"
]
],
"content": "nostr:npub15fkerqqyp9mlh7n8xd6d5k9s27etuvaarvnp2vqed83dw9c603pqs5j9gr symptoms of using the rand() call because they didn't know any better. \n\nTip though of you ever want to put RNG and stuff you do: you really need to put in anti-streak mechanisms. The way I do it is that I have the outcomes have counters and each time you get that outcome it gets some percentage less likely that you'll get that outcome, changing the weights each time.\n\nSo of you start with A/B with a 50/50 chance, of you hit A the offs next time will be 45/55, then hit A -\u003e 40/60, then hit B -\u003e 45/55. That makes it no longer true random but computer RNG does not at all resemble real life probability in the short term and this is a smoke and mirrors fix for it. \n\nNote that this is bad for security it just feels good.",
"sig": "1436088ae38db3d03b48f8fba869334ccc992cdacd7666d3977c28ac1e22b0af638bfbcbb83ed9190c57a1c9b29be168e1490ae1447b5767ca78e60f34fb956b"
}