Made the random object in AbstractAgent static for reduced memory usage.