Now I just realized, that for many cases it should be possible and good enough to use Pseudorandom number generator
function random(seed: number) {
const nextSeed = (1839567234 * seed + 972348567) % 8239451023
return nextSeed;
}
const seed = 1;
const randomNumber1 = random(seed);
const randomNumber2 = random(randomNumber1);