/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        E T U D E   D E   L A   C O M P L E X I T E   S T R U C T U R E L L E                                                      */
/*        D E   P O I N T S   P S E U D O - A L E A T O I R E S  :                                                                   */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xrC/ObjetComplexe.C1$vv$c' :                                                                                   */
/*                                                                                                                                   */
/*                    Jean-Francois Colonna (LACTAMME, 20130507142815).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

#ifdef    COMMENTS
#         undef     COMMENTS
#else
#endif

#define   COMMENTS  "Champ pseudo-aleatoire type 'drand48(...)' simplifie (format octet) -noir ou blanc-"

#include  "images_1octet.01.vv.I"

#ifndef   INCREMENT
#         define    INCREMENT                                                                                                           \
                              (171)
#else
#endif

#ifndef   MODULO
#         define    MODULO                                                                                                              \
                              (23)
#else
#endif

int       increment=INCREMENT;
int       modulo=MODULO;

MAIN(
          {
          long      int       Xi=1;

          for       (y=Ymin ; y <= Ymax ; y=ADD2(y,1))
                    {
                    for       (x=Xmin ; x <= Xmax ; x=ADD2(x,1))
                              {
                              Xi = MUL2(Xi,increment);
                              STORE_IMAGE_TORE(x,y,COND(REST(DIVI(Xi,modulo),2)==0,NOIR,BLANC));
                              }
                    }

          SORTIE_DU_FICHIER_IMAGE;
          EDITER_LES_COMPTEURS_DES_FONCTIONS;
          }
     )



Copyright © Jean-François Colonna, 2013-2021.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / Ecole Polytechnique, 2013-2021.