I want to make a text-based game where you mine for ores and gems in python, and I want to make it a random choice of what you get when you type 'mine', how do you make it so some of the random choices are more rare then the other?
here is my code so far: `
import random,
start = raw_input('Welcome to the mining game! Type "Start" to continue. ')
if str.upper(start) == ("START"):
default_cash = 14
print "You have %g cash." % default_cash
choices = raw_input("What would you like to do? Type 'Mine' to dig for ores, or type 'Shop' to go shopping for equipment. ")
if str.upper(choices) == ("MINE"):
ores = ["emerald", "ruby", "silver", "gold", "diamods", "nothing"]
ores_random = random.choice(ores)
print "you found %s!" % ores_random`