//  This C calling program will be linked to the
//  function that generates random numbers. 

#include <stdio.h>
int main ()
{
    unsigned long long i, low=1, high=6;
    if ( sizeof(long int) != 8 ) {
       printf( "RANDC requires compiling with +DD64\n" );
       return(1);
    }
//  In C, scalars are passed by value by default

    i=0;
    while ( i<20 )
    {
      printf( "%llu\n",random(low,high) );
      i++;
    };
    return 0;
}