-
-
Save creyn/609121bc4bad4af8bd21f795dd6de3f5 to your computer and use it in GitHub Desktop.
Droga Programisty : Szybkie Palce : funkcja WylosujCzasRundy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Funkcja ktora losuje czas rundy uwzgledniajac 'minimalnyCzasRundy' | |
// oraz losowy czas od 1 do 5 sekund | |
function WylosujCzasRundy(minimalnyCzasRundy) { | |
var czasLosowy = Math.floor(1 + Math.random() * 5); | |
return minimalnyCzasRundy + czasLosowy; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment