Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/09/2005, 08:19
Avatar de Eternal Idol
Eternal Idol
 
Fecha de Ingreso: mayo-2004
Ubicación: Lucentum
Mensajes: 6.192
Antigüedad: 20 años
Puntos: 74
Esa funcion no existe, ¿Que compilador estas usando?

Aca tenes un ejemplo de la MSDN para obtener numeros aleatorios:

Código:
#include <stdlib.h>
#include <stdio.h>
#include <time.h>

int main( void )
{
   int i;

   /* Seed the random-number generator with current time so that
    * the numbers will be different every time we run.
    */
   srand( (unsigned)time( NULL ) );

   /* Display 10 numbers. */
   for( i = 0;   i < 10;i++ )
      printf( "  %6d\n", rand() );
}
__________________
¡Peron cumple, Evita dignifica! VIVA PERON CARAJO