Seed random generator?

Hello ! I am trying to make a daily challenge. To do so, I’d like to seed the random generator with the date (and have consistent results : each date would return the same series of figures from the RNG).

I found out how to retrieve the date, but I don’t know about seeding the generator.
Is it possible ?

I’m not aware of a Gdevelop random seed. Even JavaScript doesn’t seem to have a default method. There are a lot of JavaScript functions but they all seem complicated.

What exactly are you randomizing?

Well, it is a daily challenge. So the idea is to randomize any random part on the level generation.
I might have to create my own pseudorandom generator then !

1 Like