452
you are viewing a single comment's thread
view the rest of the comments
[-] MeatsOfRage@lemmy.world 143 points 1 year ago* (last edited 1 year ago)

Reminds me of the old iTunes shuffle thing. When it was first introduced it was actually random but too many people complained it was broken when they heard the same artist multiple times in a row so they rewrote it as a shuffle algorithm that would feel more random than actual random.

Just goes to show, we don't actually want random, we want variety.

[-] grue@lemmy.world 41 points 1 year ago* (last edited 1 year ago)

There are two basic ways of doing "random" songs:

  1. Pick a new song randomly each time a song ends. This is the naive way to do it and can result in playing the same song twice.
  2. Randomly shuffle the list of songs once and then go through the shuffled list in order, guaranteeing that no single song gets played a second time before all songs have been played.

The strategies are different, but I'd argue that they're equally "random."

I've got a cheap Chinese aftermarket head unit in my car that uses strategy #1, and it's mildly infuriating.

[-] Bumblefumble@lemm.ee 21 points 1 year ago

Yeah, but all modern music platforms use a more advanced random, where it will avoid putting two different songs by the same artist in a row for example. But it's still based on the second strategy you wrote.

[-] Longpork_afficianado@lemmy.nz 1 points 1 year ago

This seems somewhat flawed. Lets say you have 90 songs by Vengaboys, and 10 songs by Slayer in your playlist. In order to play every song without playing Vengaboys back to back, you'd need to play Slayer 4x more often than you play Vengaboys.

[-] whaleross@lemmy.world 26 points 1 year ago* (last edited 1 year ago)

Reminds me of an article I read long time ago of the need in computer games to tweak percentage chance of success and failure, because if it is true as presented 80% success rate players think it should be "almost always" and complain when one fifth of attempts fail.

[-] aeronmelon@lemm.ee 19 points 1 year ago

Me when the weather app says 80% chance of rain, so I go everywhere with an umbrella but it's overcast all day long. Then it says 15% and I get rained on while walking to the store.

I'm never going to learn.

[-] Radio_717@lemmy.world 24 points 1 year ago* (last edited 1 year ago)

I found out recently that those percentages actually mean 80% of the local AREA would have rain and 20% would not. Meaning if there is a chance of rain in your town at all it’s likely raining somewhere even if it’s just a tiny drop or two.

So if you don’t want to get wet at all bring an umbrella if the chance is over 0%.

Source: was talking to a meteorologist about this exact thing.

[-] CobblerScholar@lemmy.world 13 points 1 year ago

Well rain chance is a compound probability it's the probability that it will or will not rain multiplied by the percent of land hit with rain. Like if 50% of an area will be hit and there's an 80% chance it will rain the number the weather Channel will give you is 40%

[-] qwertyqwertyqwerty@lemmy.one 9 points 1 year ago

Chance of rain is calculated based on two things: Meteorologists' educated guess on the chance of rain, multiplied by the area that will receive rain, in the event it does rain.

https://www.discovery.com/science/chance-of-rain

[-] idunnololz@lemmy.world 11 points 1 year ago

Pokemon players are very versed in this. This is why I only use 100% hit rate moves.

[-] Karyoplasma@discuss.tchncs.de 1 points 1 year ago

In gen 1 that would be only Swift, Bide and self-targeting status moves because every 100% accuracy move can miss due to a bug (1/256). Fun fact: you would actually be able to beat the game with these 2 moves because Bide, in gen 1 only, bypasses Ghost's immunity to Normal moves.

[-] idunnololz@lemmy.world 1 points 1 year ago

Hot take. FireRed > Red so I never need to play gen1 even if I am feeling nostalgic.

[-] Karyoplasma@discuss.tchncs.de 1 points 1 year ago

Mechanically, the remakes are objectively the better games and they also offer more gameplay-wise with new moves, more logical movesets, abilities, nature, actual EV system. The next big improvement was the physical/special split in Gen5.

I still play the gen1 games from time to time tho. They are hilarious.

[-] teft@startrek.website 6 points 1 year ago

It’s a big complaint for new players to Baldurs gate 3. People think a 95% chance to hit won’t fail but it does sometimes. Just the luck of the dice.

[-] ares35@kbin.social 3 points 1 year ago

'drop rates' are the same thing. 10% chance doesn't mean you will see it drop if you run a mission or defeat that boss ten times.

[-] LordOfTheChia@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

Or thinking that if you didn't get the drop in 9 attempts, you're practically guaranteed it in the next attempt.

Nope, still 1 in 10 chance.

In most simple written RNG calculations, past failures do not guarantee future success.

I believe some games will keep a tally of failures and award a successful loot after x failures to avoid frustrating players.

[-] Cylusthevirus@kbin.social 3 points 1 year ago

BG3 literally has setting for this.

[-] teft@startrek.website 3 points 1 year ago* (last edited 1 year ago)

Don't use it though. The karmic dice system works for enemies too. So if you enable the system your rolls will fail less often but so will the enemy's dice rolls. With karmic dice on I find the enemies crit me more. Especially on tactician mode.

[-] bilboswaggings@sopuli.xyz 2 points 1 year ago

Yeah Pity systems are quite common Also used in loot boxes to keep you buying with the terrible odds they have

[-] Rai@lemmy.dbzer0.com 2 points 1 year ago

I learned this very VERY well when I played Ragnarok Online in my teens.

[-] Kusimulkku@lemm.ee 4 points 1 year ago

There was a huge fight about this on The Battle for Wesnoth

[-] LordOfTheChia@lemmy.world 7 points 1 year ago

Same thing happened with the iPhone shuffle. People complained it wasn't "random enough" and would often end up calling members of the same family and/or household in a row. So they rewrote that algorithm too.

[-] MeatsOfRage@lemmy.world 14 points 1 year ago* (last edited 1 year ago)

Wait, what?! There's a call a random person feature? What a nightmare

[-] aeronmelon@lemm.ee 6 points 1 year ago

Those were the best days of Apple. Steve Jobs literally titled the feature "Less Random".

[-] Fades@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

It’s not just about not wanting random, but randomness is actually very hard to create. Every random number is actual pseudo random

Some basic breakdowns of this concept:

https://slate.com/technology/2022/06/bridle-ways-of-being-excerpt-computer-randomness.html

The problem modern computers have with randomness is that it doesn’t make mathematical sense. You can’t program a computer to produce true randomness—wherein no element has any consistent, rule-based relationship to any other element—because then it wouldn’t be random. There would always be some underlying structure to the randomness, some mathematics of its generation, which would allow you to reverse-engineer and re-create it. Ergo: not random.

Kid friendly version:

https://stackoverflow.com/a/633085

[-] Turun@feddit.de 10 points 1 year ago* (last edited 1 year ago)

Every random number is actual pseudo random

No, there are true random sources in a computer. Any outside input can be used to generate randomness. Mostly user input, but temperature fluctuations can work as well, if the sensor precision is high enough.

Also the argument is only correct on a technical level for PRNGs. Choose a 65535 sided dice and make the instructions a thousand steps long and you'll have a pretty hard time to deduce the instructions from the generated numbers. Not to mention how long the list of numbers needs to be for the attacker to start guessing.

[-] Honytawk@lemmy.zip 1 points 1 year ago

It is all based upon calculations with known numbers.

A computer can't create a number out of nothing.

That is why Cloudflare uses lava lamps to generate random numbers for their cryptography. And even those aren't fully random.

[-] vrighter@discuss.tchncs.de 7 points 1 year ago

Modern cpus actually do have trng hardware built in. So yes, modern computers can create numbers out of nothing, because they have specialized hardware to do so

[-] FooBarrington@lemmy.world 3 points 1 year ago

No, CloudFlare doesn't use lava lamps to generate random numbers, that was a marketing stunt. Using a camera in a completely dark room is a better source of entropy than one pointed at lava lamps.

Also, nobody is saying that computers create a number out of nothing. The environment is a great source of entropy (temperature fluctuations, user inputs and so on) which are then expanded into a larger amount of entropy through CSPRNGs.

[-] Karyoplasma@discuss.tchncs.de 0 points 1 year ago

Using a camera in a completely dark room is a better source of entropy than one pointed at lava lamps.

Why is that? Naturally occurring or manufacturing-related impurities in the optical chip?

[-] FooBarrington@lemmy.world 1 points 1 year ago

All digital cameras are imperfect - there is always a bit of noise, but usually it doesn't come through since your scene is bright enough to make small amounts of noise imperceptible. In a completely dark room the camera still tries to get data from the photo sensor, but the noise (created by temperature fluctuations, imperfections in the chip itself and so on) is all you get. You may theoretically be able to predict the noise on short time scales, but it's a chaotic system.

[-] Asifall@lemmy.world 9 points 1 year ago

For the purpose of shuffling a playlist pseudo random is indistinguishable from truly random in all the ways that matter anyway.

[-] Ultraviolet@lemmy.world 1 points 1 year ago

This is an irrelevant distinction for any case where you aren't worried about someone reverse engineering the algorithm and seed by logging output. Any half decent PRNG's output will be statistically indistinguishable from true randomness.

[-] Steve@startrek.website 1 points 1 year ago
this post was submitted on 06 Nov 2023
452 points (93.8% liked)

memes

10369 readers
2083 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 1 year ago
MODERATORS