[RVGL] Car/Track Randomizer

Report issues and bugs here.
User avatar
Kiwi
Posts: 304
Joined: Thu Dec 07, 2017 9:04 pm
Contact:

Re-Volt [RVGL] Car/Track Randomizer

Unread post by Kiwi » Fri Mar 23, 2018 9:47 am

Huki or Marv, can you have a look inside the RVGL code, how the car- and track randomizers are coded?

I'm sure I'm not the only one who have experienced, that the chance that a latly added track will be chosen is much higher, then older tracks. I would be interested in how this feature works exactly.

Example: When the new I/O bonus tracks was released, some people (different ones - I think Whitedoom and me, but also other ones) did random track races. At least every second track was a new bonus track.

In my opinion, every car/track should be chosen by the same chance. If 100 tracks are installed, the chance should be 1% for every track.
User avatar
607
Posts: 154
Joined: Thu Dec 07, 2017 5:49 pm

Re: [RVGL] Car/Track Randomizer

Unread post by 607 » Sat Mar 24, 2018 7:07 pm

Hm, interesting. I have not noticed this. But yeah, it should indeed be as random as possible. And I do mean random, not shuffled (which it surely isn't).
User avatar
Marv
Site Admin
Posts: 194
Joined: Mon Dec 04, 2017 6:45 pm
Location: /home/marv

Re: [RVGL] Car/Track Randomizer

Unread post by Marv » Tue Mar 27, 2018 11:05 am

If 100 tracks are installed, the chance should be 1% for every track.
That's exactly how it works.
User avatar
607
Posts: 154
Joined: Thu Dec 07, 2017 5:49 pm

Re: [RVGL] Car/Track Randomizer

Unread post by 607 » Tue Mar 27, 2018 4:54 pm

Good. :) I was wondering how I hadn't noticed this. I guess it just isn't a thing. ;)
User avatar
Kiwi
Posts: 304
Joined: Thu Dec 07, 2017 9:04 pm
Contact:

Re: [RVGL] Car/Track Randomizer

Unread post by Kiwi » Tue Mar 12, 2019 2:25 pm

Sorry for bringing this topic back from the grave, after nearly one year.
But I just recognised this entry at the changelog of RVGL release 19.0120a:

Image

Does this means, that there really were issues with the randomizer before this change, @Huki?
User avatar
Huki
Developer
Posts: 151
Joined: Wed Dec 06, 2017 5:54 am
Discord: Huki#1668

Re: [RVGL] Car/Track Randomizer

Unread post by Huki » Tue Mar 12, 2019 11:59 pm

Kiwi wrote:
Tue Mar 12, 2019 2:25 pm
Does this means, that there really were issues with the randomizer before this change, @Huki?
There was no issue, but the quality of the RNG could have suffered because it was re-seeded before every multiplayer race and the seed used was a weak one. It now uses a strong seed, so the generated random values are likely to be more closer to the theoretical probability.
► Show Spoiler
Post Reply