Zshandi / SuperSpherebox65

This is a preliminary repository for my groups GGJ 2024 entry.
0 stars 0 forks source link

Implement custom rng algorithm, independent of built-in algorithm #39

Open Zshandi opened 5 months ago

Zshandi commented 5 months ago

This issue is to build on #38 and make the custom rng class use an implementation which isn't just Godots built-in one. This will ensure that we can have random number generation that is totally independent of Godot's underlying implementation.

What algorithm this uses needs to be determined. It could use the same algorithm which Godot uses, currently PCG32. However, we should probably do a bit of research, but that's a good starting point.

There aren't many requirements for this algorithm, other than that it needs to allow providing a seed, and saving/loading state somehow. Ideally it would also be relatively simple to implement, yet also fairly fast, though performance is not as much of a concern at this point.