Math.random шестизначные числа

PHOTO EMBED

Tue Mar 02 2021 16:20:35 GMT+0000 (Coordinated Universal Time)

Saved by @happy_cutman #javascript

const idGenerator = () => {
        setId(Math.floor(Math.random() * (999999 - 100000 + 1)) + 100000)
};
content_copyCOPY