An iterator that chooses a list element at random
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
__init__.py
random_from_list.py

README.md

random_from_list

An iterator that chooses a list element at random

usage

# import object
from random_from_list import Rfl

for i in Rfl([0, 1, 2, 3, 4, 4, 5]):
	print(i)

# output
4
1
3
0
4
2
5