game design – How to interact spheres with random walls

I have a physics problem to deal with, I ask here because game developers often use the effective method. I've got randomly distributed circles that interact with Lennard Jones's potential or just with a bounce limit on a random shaped wall, knowing that I'm taking a V-shaped wall. Help me understand a effective algorithm used by game developers for rebound interactions. x.periodic, y.wall