Random() Functionality in programming languages

Almost every programmer have used the Random() Functionality in any programming language they use.

but , have you ever asked yourself how this functionality works ? to be more specific.

How the Random() Functionality is generating a random object even if nothing is actually random inside a computer?

Well, hopefully someone has an idea about that. thanks in advance.

That’s a very good question!

Behind pseudo-random functions there are math and statistics’ theorems; I think the following wiki page, Linear congruential generator, is a good starting point to understand a little bit of this huge topic.


@pierdipi  Thank you for clarifying! looking forward to learn more in this huge topic.