C / stdlib.h / rand
abort, abs, atexit, atof, atoi, atol, bsearch, calloc, div, exit, free, getenv, labs, ldiv, malloc, mble, mbstowcs, mbtowc, qsort, » rand, realloc, srand, strtod, strtol, strtoul, system, wctomb,
Funcion: rand()
Sintaxis:
int rand(void);

Descripcion: La función rand calcula una secuencia de números enteros pseudo-aleatorios en el intervalo de 0 á RAND_MAX.


Ejemplo:
#include <stdio.h>
#include <stdlib.h>
 
int main()
{
   unsigned int i=1;
 
   printf( "30 numeros generados aleatoriamente: \n\n" );
   for( i=1; i<30; i++ )
      printf( "%d, ", rand() );
   printf( "%d\n", rand() );
 
   return 0;
}

Librerias C

Librerias ANSI C
   string.hcstring
   math.hcmath
   stdio.hcstdio
   time.hctime
   stdlib.hcstdlib
   ctype.hcctype
   locale.hclocale
   signal.hcsignal
   setjmp.hcsetjmp

Librerias Borland
   conio.h
   graphics.h