Thread
:
trying to add up random numbers into one number
View Single Post
#
5
(
permalink
)
09-15-2008, 04:20 PM
Norm
Senior Member
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Quote:
how to i just have it generate a random number then return it.
You can use the Random nextInt() method to get a random number.
What are the requirements for the random number? For example what range of values or what type of variable: int, float
Norm
View Public Profile
Send a private message to Norm
Visit Norm's homepage!
Find all posts by Norm