<div id="carousel" class="view">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
<div class="item">6</div>
</div>
<div id="carousel" class="view">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
<div class="item">6</div>
</div>
const carusel = document.querySelector('#carousel');
carusel.innerHTMl = '';
[...carusel.children]
.sort(() => Math.random() - 0.5)
.forEach(v => carusel.append(v));