/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P O U R   V A L I D E R   L E   C O M P O R T E M E N T   D E   ' rand(...) '  :                                           */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xtc/Check_rand.01$vv$c' :                                                                                      */
/*                                                                                                                                   */
/*                    Jean-Francois Colonna (LACTAMME, 20130322101139).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

#include  "INCLUDES.01.I"

extern    int       rand();

extern    double    log10();

#define   N0                                                                                                                            \
                    1
#define   N                                                                                                                             \
                    10

main()
          {
          int       n;

          for       (n=N0 ; n <= N ; n++)
                    {
                    printf("random()=%d\n",rand());
                                        /* Voici les resultats obtenus le 20130322101139 sur '$LACT19' :                             */
                                        /*                                                                                           */
                                        /*                  random()=1804289383                                                      */
                                        /*                  random()=846930886                                                       */
                                        /*                  random()=1681692777                                                      */
                                        /*                  random()=1714636915                                                      */
                                        /*                  random()=1957747793                                                      */
                                        /*                  random()=424238335                                                       */
                                        /*                  random()=719885386                                                       */
                                        /*                  random()=1649760492                                                      */
                                        /*                  random()=596516649                                                       */
                                        /*                  random()=1189641421                                                      */
                                        /*                                                                                           */
                                        /* Ces valeurs sont compatibles avec les resultats donnes par 'rand(...)' dans les           */
                                        /* commentaires de 'v $xtc/ParadoxeSimpson.15$vv$c'.                                         */
                    }
          }



Copyright © Jean-François Colonna, 2023-2023.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2023-2023.