eturn;
    }

    db = tempfileobj;
    selecteddb = {};
    countsel();
    displayTitles();
}

function shuffle(array) {
    for (let i = array.length - 1; i > 0; i--) {
        // Generate a random index
        const j = Math.floor(Math.random() * (i + 1));
        // Swap elements i and j
        [array[i], array[j]] = [array[j], array[i]];
    }
    return array;
}

function shufflesel()
{
    const contentsDiv = document.getElementById('contents');
    tempfileobj = [];
    for