xrandom 0.7.2 copy "xrandom: ^0.7.2" to clipboard
xrandom: ^0.7.2 copied to clipboard

Random number generators library focused on the consistency, performance and reproducibility

example/main.dart

import 'package:xrandom/xrandom.dart';

void main() {
  final xrandom = Xrandom();

  print('Random number: ${xrandom.nextInt(100)}');

  var shuffledList = [1, 2, 3, 4, 5]..shuffle(xrandom);
  print('Shuffled list: $shuffledList');

  int raw = xrandom.nextRaw32();
  print('Raw generator output: ${raw.toRadixString(16)}');
}
10
likes
130
pub points
78%
popularity

Publisher

verified publisherrevercode.com

Random number generators library focused on the consistency, performance and reproducibility

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on xrandom