0

What is the algorithm of random?

In programming languages (python) , you will see a module called random , When you execute the following code import random print(random.randint(10,100)) It prints different numbers each time But why this happens Each time the same module is imported and same function is called Anyone explain the algorithm behind it

18th Jul 2020, 4:43 AM
5152Vignesh .A
5152Vignesh .A - avatar
1 Antwort
+ 1
Python is open source and you can see any code of functions (not built-in) here is the code to see the source code https://code.sololearn.com/c2oQWTS6aq2M/?ref=app
18th Jul 2020, 8:56 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar