feat: Initial commit

This commit is contained in:
2024-03-22 17:01:42 +01:00
parent 954985f39a
commit c343ff6e93
106 changed files with 143428 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
def pseudorandom(a, b, m, r):
while True:
r = (a*r+b)%m
yield r
rold = int(input("Seed the generator: "))
generator = pseudorandom(32310901, 1729, 2**24, rold)
for i in range (100):
print(next(generator))