#include <OS2.h>
#include <Stdio.h>
#include <StdLib.h>

#define Main main

#define ARRAY_LENGTH 1000

VOID Main ()
{
  DATETIME Current_time = {0};
  DosGetDateTime (&Current_time);
  srand (Current_time.hundredths);

  /* * */

  INT Array[ARRAY_LENGTH]; INT Counter;

  for (Counter = 0; Counter < ARRAY_LENGTH; Counter ++) 
  {
    Array[Counter] = rand ();
  }

  /* * */

  INT Average = 0;

  for (Counter = 0; Counter < ARRAY_LENGTH; Counter ++) 
  {
    Average += Array[Counter];
  }

  Average /= ARRAY_LENGTH;

  /* * */

  printf ("Average: %d" "\n", Average);
}
