Warcrow's Enclave Give-Away Contest!

Page 3 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: MrScott81
import java.io.*;
public class RandomGen{
public static void main(String [] args){
System.out.println(Math.random()*300);
}
}

C:\Documents and Settings\skaforey\Desktop>java RandomGen
204.22968684075948

:|

public class n
{
private static final int INC = 1;
public static void main(String arguments[])
{
double n = 1;
while( n < 30001)
{
System.out.println((n/100));
n += INC ;
}
}

}

Or 174.3