Last active
May 27, 2020 03:58
-
-
Save mrnirva/48b8c24a3511b18a3387dd20f6d038a9 to your computer and use it in GitHub Desktop.
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
import java.util.concurrent.ThreadLocalRandom; | |
int minimum = 10; | |
int maksimum = 25; | |
int randomSayi = ThreadLocalRandom.current().nextInt(minimum, maksimum); | |
// Alttaki şekilde kullanırsanız maksimum değeri de dahil edecektir. | |
randomSayi = ThreadLocalRandom.current().nextInt(minimum, maksimum + 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment