Where are the Source Codes of All Those rng.xxx Functions?

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
helminthauge
Wyrmic
Posts: 212
Joined: Sat Sep 29, 2018 3:43 am

Where are the Source Codes of All Those rng.xxx Functions?

#1 Post by helminthauge »

I want to know how exact some of these functions, i.e. rng.normalFloat work, but I can't find their source codes. Where are they?

helminthauge
Wyrmic
Posts: 212
Joined: Sat Sep 29, 2018 3:43 am

Re: Where are the Source Codes of All Those rng.xxx Function

#2 Post by helminthauge »

ok, I found them myself.
The usage of some basic ones can be found in /src/core_rng.luadoc . More advanced ones based on these basic ones can be found in /game/loader/pre-init.lua .

Post Reply