def generateBloodSprayList(numberOfPS): psList = [] i = 0 while i < numberOfPS: blood = particles.createBloodSpray() if blood != None: psList.append(blood) i = i + 1 return psList