Return to Snippet

Revision: 51582
at September 28, 2011 18:33 by badiali


Updated Code
function aleatorio(inferior,superior){
	numPosibilidades = superior - inferior
	aleat = Math.random() * numPosibilidades
	aleat = Math.round(aleat)
	return parseInt(inferior) + aleat
}

Revision: 51581
at September 28, 2011 18:30 by badiali


Initial Code
function aleatorio(inferior,superior){
	    numPosibilidades = superior - inferior
	    aleat = Math.random() * numPosibilidades
	    aleat = Math.round(aleat)
	    return parseInt(inferior) + aleat
	}

Initial URL

                                

Initial Description

                                

Initial Title
Numero aleatorio por rango

Initial Tags
javascript

Initial Language
JavaScript