Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 238 Bytes

Generate a Random Number in python.md

File metadata and controls

17 lines (13 loc) · 238 Bytes

Program to generate a random number between 0 and 9

1

## import the random module
import random

print(random.randint(0,9))

2

import random
for x in range(10):
  print random.randint(1,101)
```python