anchor.diff:  // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file
   // for details. All rights reserved. Use of this source code is governed by a
   // BSD-style license that can be found in the LICENSE file.
  -
  -// @dart = 2.5
   
   // Patch file for dart:math library.
   import 'dart:_foreign_helper' show JS;
  
positive.code:     do {
        _nextState();
        rnd32 = _lo;
        result = rnd32.remainder(max); // % max;
      } while ((rnd32 - result + max) >= _POW2_32);
      return result;
    }
  
negative.code:         // Max is power of 2.
          return random & (max - 1);
        }
        int result = random.remainder(max) as int;
        // Ensure results have equal probability by rejecting values in the
        // last range of k*max .. 256**byteCount.
        // TODO: Consider picking a higher byte count if the last range is a
  