Help for this page

Select Code to Download


  1. or download this
         int r = rand();
         int n = r % p;
    ...
             n = (n + n) % p;
         }
         a[n] = r;
    
  2. or download this
    say (($_ + 5) % 11 ) for (0..10);
    
    ...
    2
    3
    4