master #7

Merged
BRNSystems merged 95 commits from Mirrorlandia_minetest/minetest:master into master 2024-01-28 00:16:42 +01:00
Showing only changes of commit a8cf10b0b5 - Show all commits

@ -8180,6 +8180,11 @@ Can be obtained using `player:get_meta()`.
A 16-bit pseudorandom number generator. A 16-bit pseudorandom number generator.
Uses a well-known LCG algorithm introduced by K&R. Uses a well-known LCG algorithm introduced by K&R.
> [!NOTE]
> `PseudoRandom` is slower and has worse random distribution than `PcgRandom`.
> Use `PseudoRandom` only if you need output to match the well-known LCG algorithm introduced by K&R.
> Otherwise, use `PcgRandom`.
* constructor `PseudoRandom(seed)` * constructor `PseudoRandom(seed)`
* `seed`: 32-bit signed number * `seed`: 32-bit signed number