“como usar o math.random ()” Respostas de código

JS Random Int

function getRandomInt(min, max) {
    min = Math.ceil(min);
    max = Math.floor(max);
    return Math.floor(Math.random() * (max - min + 1)) + min;
}
JonnyG

como usar o math.random ()

local number = math.random(1, 10)
# change 1 to be the smallest possible number
# change 10 to the be the biggest possible number
panda

Respostas semelhantes a “como usar o math.random ()”

Perguntas semelhantes a “como usar o math.random ()”

Procure respostas de código populares por idioma

Procurar outros idiomas de código