function dataUniform(N, min, max, digit) {
	var N = arguments[0];
	var min = arguments[1];
	var max = arguments[2];
	var digit = arguments[3];
	
	var range = max - min;
	var data = [];
	
	for(var i = 0; i < N; i++) {
		var x = Math.random() * range + min;
		var y = parseFloat(x.toFixed(digit));
		data.push(y);
	}
	
	return data;
}
// Generate N data between min and max with digit
Generate N data between min and max with digit
Generate N data between min and max with digit
function dataUniform(N, min, max, digit) {
	var N = arguments[0];
	var min = arguments[1];
	var max = arguments[2];
	var digit = arguments[3];
	var range = max - min;
	var data = [];
	for(var i = 0; i < N; i++) {
		var x = Math.random() * range + min;
		var y = parseFloat(x.toFixed(digit));
		data.push(y);
	}
	return data;
}
function dataUniform ( N , min , max , digit ) { var N = arguments [ 0 ] ; var min = arguments [ 1 ] ; var max = arguments [ 2 ] ; var digit = arguments [ 3 ] ; var range = max - min ; var data = [ ] ; for ( var i = 0 ; i < N ; i ++ ) { var x = Math . random ( ) * range + min ; var y = parseFloat ( x . toFixed ( digit ) ) ; data . push ( y ) ; } return data ; }
Generate N data between min and max with digit
Generate N data between min and max with digit