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