JavaScript expression to generate a 5-digit number in every case February 5, 2023 by Tarik What about: Math.floor(Math.random()*90000) + 10000;