.LCG()
Takes a numerical seed and returns a function that generates PRNG based on the LCG algorithm.
Syntax
#fs.scripts.lib().LCG(seed);
Parameters
seed
The number to serve as the seed for RNG.
Return
Returns a function.
Example
function(context, args) {
const l = #fs.scripts.lib();
const my_seed = 12345;
const rng = l.LCG(my_seed);
return rng();
}