Skip to content

Commit 9e9b548

Browse files
committed
more slight changes lul
1 parent 4047b3d commit 9e9b548

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Linear congruential generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ def randomInt(): # range [0 to 2^48]
1818
return seed
1919

2020
def randomFloat(): # range [0 to 1]
21-
return(randomInt() / modulus)
21+
return (randomInt() / modulus)
2222

2323
def randomIntRange(min, max): # custom range
24-
return math.floor(randomFloatRange(min, max))
24+
return (math.floor(randomFloatRange(min, max)))
2525

2626
def randomFloatRange(min, max): # custom range
2727
return (min + randomFloat() * (max - min))
2828

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

3434

3535
#execute functions

0 commit comments

Comments
 (0)