```
package nilpointer.net;
import java.util.Random;
public class Demo {
public static void main(String[] args) {
Random random = new Random();
int upperbound = 100;
int value1 = random.nextInt(upperbound);
double value2 = random.nextDouble();
float value3 = random.nextFloat();
System.out.println("Random integer value from 0 to " + (upperbound - 1) + ": " + value1);
System.out.println("Random float value between 0.0 and 1.0: " + value2);
System.out.println("Random double value between 0.0 and 1.0: " + value3);
}
}
```

```
Random integer value from 0 to 99: 92
Random float value between 0.0 and 1.0: 0.14932076024393326
Random double value between 0.0 and 1.0: 0.19386327
```