How do I make a number so its a decimal? Ex: 0.045 I'm trying to make a game that needs it. Me and my friend are trying to do a random number generator. So like if its a 0.5,Its average. Nothing happens. If its 0.1, you die. That's just an example This is what I have so far
import colorama
import string, random, time
from colorama import Fore, init
number = random.randint(0, 9)
print(Fore.RED(random.sample(numbers,5)))