Big Random

Like dart's Random(seed) but for big numbers.
Hecho en Puerto Rico por Radamés J. Valentín Reyes
Co-engineered by Copilot

New

  • Randomness inspired by how photons interact with materials and how the result also gets affected by the view angle.
  • Preserves feedback entropy up to 200 decimal points
  • Uses material properties to enrich entropy (diffuse, roughness, refraction, etc.)
  • Generates stable and rich pseudo-random outputs from any seed

Import

import 'package:big_random/big_random.dart';

Next Big Integer

Returns a number from 0 < maxNumber

BigInt seed = BigInt.parse("6845684165468564");
BigRandom bigRandom = BigRandom(seed);
print(bigRandom.nextBigInt(BigInt.parse("68144161841")));
print(bigRandom.nextBigInt(BigInt.parse("68144161841")));

Next Big Decimal

Returns a number between 0 and 1 (inclusive)

BigInt seed = BigInt.parse("6845684165468564");
BigRandom bigRandom = BigRandom(seed);
print(bigRandom.nextBigDec());
print(bigRandom.nextBigDec());

Libraries

big_random