generate random number between 0 and 1 and sum =1 code example
Example: random python between 0 and 1
import random
random.random() # Gives you a number between 0 and 1
import random
random.random() # Gives you a number between 0 and 1