given an element with id wheel you can run lines ...
hypeDocument.setElementProperty(wheel, 'rotateZ', 0);//reset
const minDegr = 4000;
const maxDegr = 5000;
const dur = 5;
function randomInRange(min, max) {
return Math.floor(Math.random() * (max - min) + min);
}
hypeDocument.setElementProperty(wheel, 'rotateZ', randomInRange(minDegr, maxDegr), dur, 'easeout')