PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Pastebin launched a little side project called
HostCabi.net
, check it out ;-)
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Error Log report
3 sec ago
Untitled
18 sec ago
Untitled
36 sec ago
Untitled
22 sec ago
Untitled
27 sec ago
Untitled
31 sec ago
Untitled
40 sec ago
Untitled
36 sec ago
fillballresevoir
By:
ace
on
Feb 24th, 2010
| syntax:
None
| size: 0.28 KB | hits: 17 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
public int fillBallResevoir(int maxCapacity)
{
int numberOfBalls = ballResevoir.nextInt(maxCapacity);
if (numberOfBalls < 2)
{
numberOfBalls = fillBallResevoir;
}
else
{
return numberOfBalls;
}
}
create a
new version
of this paste
RAW Paste Data
public int fillBallResevoir(int maxCapacity) { int numberOfBalls = ballResevoir.nextInt(maxCapacity); if (numberOfBalls < 2) { numberOfBalls = fillBallResevoir; } else { return numberOfBalls; } }