Quantcast
Channel: Active questions tagged philosophy - Mathematics Stack Exchange
Viewing all articles
Browse latest Browse all 250

Why linear congruential generator is called random number generator?

$
0
0

As far my understanding linear congruential generator is used to produce pseudo random number. But the algorithm requires four parameters like,

def lcg(modulus, a, c, seed):    while True:        seed = (a * seed + c) % modulus        yield seed

In that case to get a true pseudo random number we cannot provide same values of params, then why it is called random generator? if I really need to provide random (seeds, a, c, m) tuples than it raises the same philosophical problem, Is it possible to produce random number? Could anyone describe why its called random generator algorithm?


Viewing all articles
Browse latest Browse all 250

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>