programming-examples/python/Math/Generate random float numbers in a specific numerical range.py

5 lines
111 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import random
for x in range(6):
print('\n{:04.3f}\n'.format(random.uniform(x, 100)), end=' ')
print()