Random Float Numbers in Python

@FordEarl welcome to python. somemething like this might work:

#import random module
import random

#initialize list with values
val = [0.5, 0.75, 1.0, 1.5, 1.75, 2.0]

#create random index and insert first item in new list
randomindex = random.randint(0, len(val)-1)
randList = [val[randomindex]]

#iterate desired amount of times
for i in range(20):
    #change the index value until its not the same as the previous 
    while randList[-1] == val[randomindex]:
        randomindex = random.randint(0, len(val)-1)
    #append value to new list
    randList.append(val[randomindex])

print randList