moved random generator initialization outside of loop...oops