Create a Python script that will generate random n integers from a given start and end of a range.
I need the code to have an output stated below:
Value for n : 5
Value for start : 1
Value for end : 10
10 8 7 8 3
int n = int(input('Value for n:'))
int start = int(input('Value for start:'))
int end = int(input('Value for end:'))
for _ in range(n):
print(random.randint(start, end))
Comments
Leave a comment