import rhinoscriptsyntax as rs
import random

Objects = rs.GetObjects("select the objects to randomly select from")
OneOutOf = rs.GetInteger("So... you want to keep ONE out of... HOW MANY ?")

for o in Objects:
    randNum = random.randrange(0,OneOutOf)
    if randNum == 0:
       rs.SelectObject(o,False)
