76.0k views
14 votes
In python, how would I randomize numbers and insert them into a file?

1 Answer

2 votes
Random integer values can be generated with the randint() function. This function takes two arguments: the start and the end of the range for the generated integer values. Random integers are generated within and including the start and end of range values, specifically in the interval [start, end].
User Igor Nikiforov
by
4.2k points