bbt 1.0.7

  • Installing
  • Versions
  • 0





Super class for pseudo-random number generator algorithms.


Super class for probability distribution functions calculations.


Same as RandomMZJCQ.dart


This algorithm implements the original universal random number generator as proposed by Marsaglia & Zaman in report FSU-SCRI-87-50, described in "F. James, Comp. Phys. Comm. 60 (1990) 329" and coded in FORTRAN77 by Fred James as the RANMAR generator, part of the MATHLIB HEP library. This algorithm was incorporated to the Geant4 simulation toolkit by G. Cosmo (1995) and coded in JavaScript by F. Quinonez (2015).

Pseudo-random numbers generator Marzaglia-Zaman-James-Cosmo-Quinonez Known in the High Energy Physics community as the HepJamesRandom generator.


Probability Distribution Function PDF Uniform.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  bbt: ^1.0.7

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:bbt/bbt.dart';
Version Uploaded Documentation Archive
1.0.7 Mar 8, 2017 Go to the documentation of bbt 1.0.7 Download bbt 1.0.7 archive
1.0.6 Oct 25, 2016 Go to the documentation of bbt 1.0.6 Download bbt 1.0.6 archive
1.0.5 Oct 25, 2016 Go to the documentation of bbt 1.0.5 Download bbt 1.0.5 archive
1.0.4 Oct 25, 2016 Go to the documentation of bbt 1.0.4 Download bbt 1.0.4 archive
1.0.3 Oct 24, 2016 Go to the documentation of bbt 1.0.3 Download bbt 1.0.3 archive
1.0.2 Oct 21, 2016 Go to the documentation of bbt 1.0.2 Download bbt 1.0.2 archive
1.0.1 Oct 21, 2016 Go to the documentation of bbt 1.0.1 Download bbt 1.0.1 archive
1.0.0 Oct 21, 2016 Go to the documentation of bbt 1.0.0 Download bbt 1.0.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Fix dependencies in pubspec.yaml.

Running pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.1.0.
 Because bbt depends on args >=0.2.8+2 <1.4.4 which requires SDK version <2.0.0, version solving failed.

Health suggestions

Format bin/main.dart.

Run dartfmt to format bin/main.dart.

Format lib/random/hepjamesrandom.dart.

Run dartfmt to format lib/random/hepjamesrandom.dart.

Format lib/random/heprandom.dart.

Run dartfmt to format lib/random/heprandom.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/random/heprandomengine.dart (Run dartfmt to format lib/random/heprandomengine.dart.)
  • lib/random/randflat.dart (Run dartfmt to format lib/random/randflat.dart.)
  • lib/random/randommzjcq.dart (Run dartfmt to format lib/random/randommzjcq.dart.)

Maintenance issues and suggestions

Add SDK constraint in pubspec.yaml. (-50 points)

For information about setting SDK constraint, please see

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Running dartdoc failed. (-10 points)

Make sure dartdoc runs without any issues.

Maintain (-20 points)

Changelog entries help clients to follow the progress in your code.

Package is getting outdated. (-77.26 points)

The package was released 92 weeks ago.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use bbt.dart.