1 2 3 4 5 6 7 8
export function randomStatus() { return Math.random() < 0.5; } export function randomLevel() { const maxLevel = 10; return Math.floor(Math.random() * maxLevel + 1); }