Skip to content

Commit 9d6b50e

Browse files
committed
okay more slight changes
1 parent 9e9b548 commit 9d6b50e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Linear congruential generator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#imports
1+
# imports
22
import time
33
import math
44

5-
#parameters
5+
# parameters
66
seed = int(round(time.time() * 1000))
77
multiplier = 25214903917
88
increment = 11
@@ -26,13 +26,13 @@ def randomIntRange(min, max): # custom range
2626
def randomFloatRange(min, max): # custom range
2727
return (min + randomFloat() * (max - min))
2828

29-
def randomBool(chance): #chance of getting true
29+
def randomBool(chance): # chance of getting true
3030
if(chance == 0):
3131
chance = 0.5
3232
return (randomFloat() < chance)
3333

3434

35-
#execute functions
35+
# execute functions
3636
print("Sequence of Random Integers between 0 and the Modulus")
3737
print(randomInt())
3838
print(randomInt())

0 commit comments

Comments
 (0)