Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedart_random_choice

Select a random element from any iterable, optionally using weights.

pub.devRemove
random_string

Generates random ASCII strings, numbers, and alphanumeric sequences for testing purposes.

pub.devRemove
ScoresHealth4650 (best)
Maintenance00
Quality100100
Popularity1882 (best)
Community46 (best)23
Compatibility100100
UsageDownloads (30 days)513166k (best)
Likes15204 (best)
Pub points160 / 160160 / 160
GitHub stars524 (best)
MaintenanceLatest release0.2.0, 4 years ago (best)2.3.1, 5 years ago
Major versions in 12 months00
Contributors24 (best)
Publisherkirocodes.devUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Zero external dependencies
  • Null‑safe and works on all Dart platforms
  • Supports weighted selection
  • Zero dependencies
  • Simple API
  • Customizable random provider
Weaknesses
  • Uses dart:math random, not suitable for security‑critical use
  • No async or stream support
  • Limited to simple weight lists
  • Not suitable for security‑critical use
  • Limited to ASCII characters
WarningsNoneNone
dart_random_choice vs random_string: which Flutter package should you use? | pubscout