def gen_random_shapes(n): for x in range(n): i = random.randint(0, 2) if i == 0: ren.random_sphere() elif i == 1: ren.random_plane() else: ren.random_triangle()
def random_spheres(n): for x in range(n): ren.random_sphere()