Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

random float in java

import java.util.Random;

public static float randFloat(float min, float max) {

    Random rand = new Random();

    return rand.nextFloat() * (max - min) + min;

}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #float #java
ADD COMMENT
Topic
Name
9+7 =