feat : module page
This commit is contained in:
13
packages/core/lib/utils/number_utils.dart
Normal file
13
packages/core/lib/utils/number_utils.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import 'dart:math';
|
||||
|
||||
final _random = Random();
|
||||
|
||||
|
||||
int randomInt(int min, int max) {
|
||||
return min + _random.nextInt(max - min + 1);
|
||||
}
|
||||
|
||||
|
||||
double randomDouble(double min, double max) {
|
||||
return min + _random.nextDouble() * (max - min);
|
||||
}
|
||||
@@ -11,3 +11,4 @@ export 'network/network.dart';
|
||||
export 'parser.dart';
|
||||
export 'route_utils.dart';
|
||||
export 'separator_input_formatter.dart';
|
||||
export 'number_utils.dart';
|
||||
|
||||
Reference in New Issue
Block a user