# A flexible dice that can help you making decisions
# flexible dice written by Jonathan M. Hethey - jonathan.hethey@gmail.com
import random	# it's necessary to import this function to choose a random number from a range later
print("Please insert your choices, press enter and make the dices roll with \"end\"")	# This gives the user an idea how this works
Options = []		# introducing the array/list
while "end" not in Options:		# as long as "end" is not an entry in "Options
	Options.append(raw_input(""))		# the keyboard entries are being added to Options
Options.remove("end")		# removing "end" from the list
zufallssumme = len(Options)		# reading the length of the list, defining the randrange
zufallszahl = random.randrange(zufallssumme)		# the random function
print "The dice tells you: ", Options[zufallszahl]		# Here the right entry is read from the list