Try the following:
if random.randint(1, 10) in (1, 2, 3): print '30% chance' else: print '70% chance'
Here randint will generate a number from 1 to 10, there is a 30% chance that it will be between 1-3 and 70% chance that it will be between 4-10
source share