Skip to content

A "reversible" random number generator rackage for Dart. It's able to generate the previous random number. Based on linear congruence. Ported from https://github.com/LovEveRv/reversible-random.js

Notifications You must be signed in to change notification settings

PriceHu/reversible_random.dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reversible_random.dart

A "reversible" random number generator package for Dart. It's able to generate the previous random number. Based on linear congruence.

Ported from LovEveRv/reversible-random.js.

一个Dart编写的“可逆”随机数生成器,能够生成前一个随机数。基于线性同余算法。

移植自LovEveRv/reversible-random.js.

Usage

A simple usage example:

import 'package:reversible_random/reversible_random.dart';

main() {
  var rd = new ReversibleRandom();
  print('${rd.next(max: 20)}');
}

About

A "reversible" random number generator rackage for Dart. It's able to generate the previous random number. Based on linear congruence. Ported from https://github.com/LovEveRv/reversible-random.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages