 
			
				18/07/2003, 13:03
			
			
			     |  
      |    |    |    Fecha de Ingreso: abril-2003  
						Mensajes: 606
					  Antigüedad: 22 años, 6 meses Puntos: 2     |        |  
      Que tal asi:   
Código:
  import java.io.*;
public class NUMEROS
{
    public static void main (String agrs[]){
        int i;
        double Nums;
        
        try{
            FileOutputStream fsw = new FileOutputStream ("D:\\Num.txt");
            DataOutputStream dsw = new DataOutputStream (fsw);
        
            for (i=1; i<=2; i++){
                Nums = Math.random() * 1000;
                dsw.writeUTF (new String(Nums+"\r\n"));
            }
        }
        
        catch(IOException except){
            
        }
    }
}
              |