diff --git a/src/random_number.py b/src/random_number.py new file mode 100644 index 0000000..9dbeebf --- /dev/null +++ b/src/random_number.py @@ -0,0 +1,15 @@ +# Write a program that generates a random number. + +# Output: +# The random number is: 4 + +from random import randint + +MIN_RAND_VALUE = 0 +MAX_RAND_VALUE = 1000 + +def random_number(a: int, b: int) -> int: + return randint(a, b) + +x = random_number(MIN_RAND_VALUE, MAX_RAND_VALUE) +print(x)