Method nextFloat()
Return type: float
Member of:
java.util.Random
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
return (int)(fgRandom.nextFloat() * (high-low)) + low;
2
float rand = r.nextFloat();
3
int rand1 = Math.round(randGen.nextFloat() * 10);
4
return new Float(Math.abs(rnd.nextFloat()));
5
data[row][column] = new Float(rand.nextFloat() * 2);
6
s+=(new Random()).nextFloat()*3600;
7
index = (int)(_cache.length*__random.nextFloat());
8
while (s_random.nextFloat() > 0.95) {
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.