const noDrawPosition = (name, prizeListName, content, callBack) => {
  if (name == 'rotaryTable') {
    let noPrizeIndexArr = [];
    content[prizeListName].map((item, index) => {
      if (!item.prizeType) {
        noPrizeIndexArr = noPrizeIndexArr.concat(index)
      }
    })
    console.log(noPrizeIndexArr, '未中奖的位置下标数组')
    let a = Math.floor(Math.random() * (noPrizeIndexArr.length - 1));
    let position = noPrizeIndexArr[a]
    console.log(a, '随机生成位置')
    callBack(position)
  }
}

export {
  noDrawPosition
}
