Skip to content

Commit

Permalink
refactoring: added random function
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaSeminara committed Oct 30, 2023
1 parent bc1dc89 commit 6ba997d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/random_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@

import random

print("The random number is: ", random.randint(0, 100))

def randomInt(a: int, b: int) -> int:
return random.randint(a, b)


print("The random number is: ", randomInt(1, 100))

0 comments on commit 6ba997d

Please sign in to comment.