行列的乘积如果少于池大小,这个插件会进入死循环
需要增加如下if判断
if(numCells<numRandomCells){

throw '行列的乘积必须大于池对象个数';
}
while (randomCellIndices.length < numRandomCells)
{
var idx = Math.floor(numCells * Math.random());
writeLn("zzl-7.3.4="+idx+";"+randomCellIndices.length+";"+numRandomCells);
if (!utils.isInArray(randomCellIndices, idx))
{
randomCellIndices.push(idx);
}
}