4 ms·
That's not true. Try running the following code: public class Test { public static void main(String[] args) { System.out.p
by nbpoole 15y ago
That's not true. Try running the following code:
public class Test
{
public static void main(String[] args)
{
System.out.println("Test: " + (int)Math.random() * 100);
System.out.println("Test: " + (int)(Math.random() * 100));
}
}
My results, from repeated tests:
java Test
Test: 0
Test: 59
java Test
Test: 0
Test: 18
java Test
Test: 0
Test: 72
java Test
Test: 0
Test: 11
- deleted 15y ago[deleted]
- electrum 15y agoIt is random! http://xkcd.com/221/ http://xkcd.com/221/