#!/usr/bin/env python3 from math import * import random # size of space L=15 # number of particles N=10 # check whether two rods overlap def check_overlap(sphere1,sphere2): if(sqrt((sphere2[0]-sphere1[0])**2+(sphere2[1]-sphere1[1])**2+(sphere2[2]-sphere1[2])**2)<2): return(True) return(False) # configuration config=[] # add spheres while len(config)