xrandom 0.7.1 copy "xrandom: ^0.7.1" to clipboard
xrandom: ^0.7.1 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)}');
}
11
likes
150
points
438
downloads

Publisher

verified publisherrevercode.com

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on xrandom