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

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

Big Random #

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

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
0
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

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

License

unknown (license)

Dependencies

big_dec

More

Packages that depend on big_random