I want a new random number every time the timeline restarts, here is the code:
gsap.registerPlugin(CustomEase, CustomWiggle);
let tl = gsap.timeline();
CustomBounce.create("bounce", {
strength: 2,
squash: .1,
});
tl.to(".box", 3, {
x: 'random(-200, 200)',
y: 'random(-200, 195)',
ease: "bounce",
onComplete: tl.restart()
})