X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FWildebeest.js;h=d0baa6f9966fce4bd79ec5796daceae6a835cbdc;hp=509586a9a52f60765905944dfb76816701445d2f;hb=656b187886e5187e52fafe44b7dc0fb45ccd9222;hpb=ab6f48ea4d9c549830f549f077c597f57ea4a57d diff --git a/client/src/variants/Wildebeest.js b/client/src/variants/Wildebeest.js index 509586a9..d0baa6f9 100644 --- a/client/src/variants/Wildebeest.js +++ b/client/src/variants/Wildebeest.js @@ -247,19 +247,19 @@ class WildebeestRules extends ChessRules positions.splice(idx, 1); } - let randIndex = random(7); + let randIndex = randInt(7); let knight1Pos = positions[randIndex]; positions.splice(randIndex, 1); - randIndex = random(6); + randIndex = randInt(6); let knight2Pos = positions[randIndex]; positions.splice(randIndex, 1); - randIndex = random(5); + randIndex = randInt(5); let queenPos = positions[randIndex]; positions.splice(randIndex, 1); // Random square for wildebeest - randIndex = random(4); + randIndex = randInt(4); let wildebeestPos = positions[randIndex]; positions.splice(randIndex, 1);