{"size": 776, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "marghe27/bingo-4-joke", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "index.js", "max_issues_repo_name": "marghe27/bingo-4-joke", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "marghe27/bingo-4-joke", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.52, "max_line_length": 50, "alphanum_fraction": 0.6069587629}
var bag = [];
var extracted = [];

 exports.reset = function () {
	'use strict';
	//var bag = [];
	//	var extracted = [];
	for (var i = 1; i <= 90; i++) {

		bag.push(i);
	}

};

this.reset();

exports.extract = function() {
	'use strict';
	var index = parseInt(Math.random() * bag.length);
	//console.log("index =", index);
	//console.log("bag  =", bag[index]);
	var result = bag.splice(index, 1);
	//console.log("result  =", result);
	var n=result[0];
	extracted.push(n);
	return n;
};

exports.getExtracted = function(){
	'use strict';
	return extracted;
};


exports.getBag = function(){
	'use strict';
	return bag;
};


this.extract();
this.extract();
this.extract();
this.extract();

console.log("bag =",this.getBag());
console.log("extracted =",this.getExtracted());


