Update description and explanation in sample

This commit is contained in:
Angelos Chalaris
2020-01-03 12:53:34 +02:00
parent 9d04ede6c5
commit 48b44d95de

View File

@ -3,9 +3,9 @@ title: sample
tags: list,random,beginner
---
Returns a random element from an array.
Returns a random element from a list.
Use `randint()` to generate a random number that corresponds to an index in the list, return the element at that index.
Use `random.randint()` to generate a random number that corresponds to an index in the list, return the element at that index.
```py
from random import randint