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