Preparation for Random API.