var Randomize = Class.create();
Randomize.prototype = {
	initialize:  function(option, item) {
		this.option = {};
		for (key in option)
			this.option[key] = option[key];	
		this.item = [];
		//型のチェックと数によるsetコールが理想
		if (item)
			this.item = item;
	},
	
	rand: function() {
		var rand = Math.floor( Math.random() * this.item.length);
		return this.item[rand];
	},
	
	get: function(key) {
		var undefined;
		if (this.item[key] === undefined)
			return null;
		return this.item[key];
	},
	
	set: function(value) {
		this.item.push(value);
	}
}
