big_random 1.0.0
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());