Skip to content

Instantly share code, notes, and snippets.

@rudrathegreat
Forked from lambdamusic/Snipplr-29455.py
Last active December 28, 2018 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rudrathegreat/455c6d4f9825711d892a614546515b6f to your computer and use it in GitHub Desktop.
Save rudrathegreat/455c6d4f9825711d892a614546515b6f to your computer and use it in GitHub Desktop.
Random Program for the Python 3 Random Function
from random import randint
for x in range(10):
print random()
print('=============================')
z = ['ciao', 'piccolo', 'bambino', 'sono', 'qua', 'io', 'in verita']
for x in z:
number = random.randint(0, 6)
choice = z[number]
print(str(choice))
print('=============================')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment