Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributenormal

Work with the normal probability distribution in Dart

pub.devRemove
xrandom

Consistent, high-performance, and reproducible random number generators in Dart.

pub.devRemove
ScoresHealth3848 (best)
Maintenance1 (best)0
Quality9696
Popularity1433 (best)
Community646 (best)
Compatibility100100
UsageDownloads (30 days)5365.4k (best)
Likes1111
Pub points150 / 160150 / 160
GitHub stars211 (best)
MaintenanceLatest release0.7.0, 3 years ago (best)0.7.2, 5 years ago
Major versions in 12 months00
Contributors12 (best)
PublisherUnverifiedrevercode.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies0 (best)1
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Simple and lightweight API
  • No external dependencies
  • Bit-accurate consistency across different platforms
  • Multiple well-known RNG algorithms available (Xorshift, Xoshiro, Splitmix, Mulberry)
  • Faster execution times compared to standard dart:math Random in benchmarks
Weaknesses
  • Limited to the normal probability distribution
  • Some 64-bit generators are unsupported on JavaScript and will throw an UnsupportedError
  • Not cryptographically secure
WarningsNoneNone
normal vs xrandom: which Flutter package should you use? | pubscout