Js, increases the number every 10 seconds, and increases each time by a random number less than 10, with an initial value of 0

beginners, I hope I can give you a template for reference. Thank you very much.

May.22,2021

let totol = 0;
setInterval(() => {
    let b = Math.floor(Math.random()*10+1);
    totol += b;
    console.log(b,totol);
}, 10000);

    var sum = 0;
    setInterval(()=>{
        sum += Math.random()*10;
        console.log(":", sum)
    },5000)
Menu