js use percentage to random code example Example: get random percentage javascript Math.floor(Math.random() * 100) + 1 + '%'