fixed interface class methods
updated Random API