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

outdated

All-purpose, rock-solid random number generators focused on the reproducibility of tests on different platforms

example/main.dart

import 'package:xrandom/xrandom.dart';

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

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

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

  int raw = xrandom.nextInt32();
  print('Raw generator output: ${raw.toRadixString(16)}');
}
11
likes
0
pub points
77%
popularity

Publisher

verified publisherrevercode.com

All-purpose, rock-solid random number generators focused on the reproducibility of tests on different platforms

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on xrandom