@nakov/

Random with seed in Python

Python

generates two random numbers, depending on the current time, in Python

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
import random, time

random.seed(time.time())
r1 = random.randrange(1e49, 1e50-1)

random.seed(time.time())
r2 = random.randrange(1e49, 1e50-1)

print(r1)
print(r2)