DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVA
random int between two values
Random
r
=
new
Random
(
)
;
int
randInt
=
r
.
nextInt
(
max
-
min
)
+
min
;
System
.
out
.
println
(
randInt
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#random
#int
#values
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit