big_random 1.0.2 copy "big_random: ^1.0.2" to clipboard
big_random: ^1.0.2 copied to clipboard

Like dart's Random(seed) but for big numbers.

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());
0
likes
120
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

Like dart's Random(seed) but for big numbers.

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

big_dec, crypto

More

Packages that depend on big_random