Last active
May 4, 2019 03:51
-
-
Save diewland/ad77e25247e816a249a436a399e7dba1 to your computer and use it in GitHub Desktop.
Preview random 5 items from list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| rows = [ 1, 2, 3, ... ] # your list | |
| print([ random.choice(rows) for i in range(5) ]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment