// Generate a fraction and print the result
let fraction = Float.random(in: 0 ..< 1)
// Import the random class in java.util
Random random = new Random();
print rand(1), "\n";
Your purchase via these links helps keep Coder Merlin™ 's orbuculum ablaze. As an Amazon Associate we earn from qualifying purchases. Thank you for your support!