xrandom 0.4.0 xrandom: ^0.4.0 copied to clipboard
All-purpose, rock-solid random number generators focused on the reproducibility of tests on different platforms
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.nextInt32();
print('Raw generator output: ${raw.toRadixString(16)}');
}