52张牌随机分给4我的

// total张牌随机分配给person我的 /* * 以52张牌分给4我的为例 * 把牌随机打乱,取13张给一我的,再取13张给下一我的 */ const giveCard = (total,person)=>{ const arr = [...Array(total).keys()].sort(()=>Math.random()>0.5?-1:1); const res =
相关文章
相关标签/搜索