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

#define Run int main

#define ARRAY_LENGTH 1000

Run ()
{
  DATETIME Current_time = {0};
  DosGetDateTime (&Current_time);

  srand (Current_time.hundredths);

  /* * */

  INT Array[ARRAY_LENGTH];

  for (INT 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);

  /* * */

  return 0;
}
