Randomizing ENTIRE image gallery

Normaly i would say, that it is not possible to use a PRO-GALLERY for your purposes. But there is a workaround i think (like mentioned by christopherb )

Maybe you really can use the DATASET to solve your issue.

But normaly you should go the CODING-WAY…

Like schon in the following example…
START | My Site 4 (russian-dima.wixsite.com)

This is a quick generated example, using → a normal gallery (NOT-PRO-GALLERY). And also do not need any DATASET-CONNECTIONS.

Everything works like a charm with a normal gallery…(21-items in gallery)

$w.onReady(()=>{    
    let items = $w("#gallery1").items; 
    $w('#button1').onClick(()=>{
        shuffle(items);
    });    
});


function shuffle(array) {
    for (let i = array.length - 1; i > 0; i--) {
        const j = Math.floor(Math.random() * (i + 1));
        [array[i], array[j]] = [array[j], array[i]];
        $w("#gallery1").items = array;
    }
}