This is one of the activities that I did when taking a Processing JS class on Khan Academy.  In this program I learned how to place rain droplets at random places on the screen and give them artificial gravity and wind speed.