MCPcopy Create free account
hub / github.com/CoderOpen/waimai / normalInt

Function normalInt

front/components/u-charts/u-charts.js:3510–3517  ·  view source on GitHub ↗
(min, max, iter)

Source from the content-addressed store, hash-verified

3508}
3509
3510function normalInt(min, max, iter) {
3511 iter = iter==0?1:iter;
3512 var arr = [];
3513 for (var i = 0; i < iter; i++) {
3514 arr[i] = Math.random();
3515 };
3516 return Math.floor(arr.reduce(function(i,j){return i+j})/iter*(max-min))+min;
3517};
3518
3519function collisionNew(area,points,width,height){
3520 var isIn=false;

Callers 1

getWordCloudPointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected