import rhinoscriptsyntax as rs import random as ran rs.EnableRedraw(False) allobjs = rs.AllObjects() rs.DeleteObjects(allobjs) first = rs.AddLine( (0,0,0),(1,0,0)) for i in range(50): angx = ran.randint(0,360) angz = ran.randint(-160,-20) new = rs.RotateObject(first,(0,0,0), angz,(0,1,0), copy=True) rs.RotateObject(new,(0,0,0), angx,(0,0,1),copy=False)