static random working