Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

generar numero aleatorio en un rango

function randomNumber(min, max){
    const r = Math.random()*(max-min) + min
    return Math.floor(r)
}
Source by pharos.sh #
 
PREVIOUS NEXT
Tagged: #generar #numero #aleatorio #en #rango
ADD COMMENT
Topic
Name
4+8 =