// Generate a fraction and print the result let fraction = Float.random(in: 0 ..< 1) print(fraction)
// Import the random class in java.util Random random = new Random();
print rand(1), "\n";