← SPL reference

newRandom (lib/newRandom.spl)

A custom pseudo-random generator written in SPL: multiple internal states, modular mixing, and an “entropy” layer based on digit-to-letter mapping and ASCII binary folding. This is not suitable for cryptography or security-sensitive use.

Load with use newRandom; (extensionless allowed via reqFileExtension.setVar(false);). Modulus newRandom_M is 2147483647.

Import

use newRandom;
function.newRandom_setSeed(12345);
print.number(function.newRandom_randInt(1, 6));

API overview

Implementation: someProgrammingLanguage/lib/newRandom.spl