implemented random learner