Compare commits

..

No commits in common. "0870ac93521d4485af466c625b2a28bf7bcf577f" and "57b837cd601a253d4668bbcd6837a5aadb06ed6a" have entirely different histories.

3 changed files with 3 additions and 20 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "schat2-clive",
"version": "1.5.7",
"version": "1.5.6",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "schat2-clive",
"version": "1.5.7",
"version": "1.5.6",
"license": "ISC",
"dependencies": {
"bhttp": "^1.2.8",

View File

@ -1,6 +1,6 @@
{
"name": "schat2-clive",
"version": "1.5.7",
"version": "1.5.6",
"description": "Game host for SChat 2-powered chat sites",
"main": "src/app.js",
"scripts": {

View File

@ -1,17 +0,0 @@
'use strict';
function shuffle(unshuffled, limit = 10) {
const shuffled = unshuffled;
for (let i = shuffled.length - 1; i > 0; i -= 1) {
const j = Math.floor(Math.random() * (i + 1));
const temp = shuffled[i];
shuffled[i] = shuffled[j];
shuffled[j] = temp;
}
return shuffled.slice(0, limit);
}
module.exports = shuffle;