/ Published in: JavaScript
Expand |
Embed | Plain Text
function aleatorio(inferior,superior){ numPosibilidades = superior - inferior aleat = Math.random() * numPosibilidades aleat = Math.round(aleat) return parseInt(inferior) + aleat }
You need to login to post a comment.
