MathTools class

Constructors

MathTools()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fibonacci(int n) int
求斐波那契数列
randomNextInt(int to, {int from = 0, bool contains = false, int increase = 1}) int
随机数,给定数值范围
randomNextIntFromList(List<int> list) int
随机数,从给定的范围中获取。
randomNextIntNotZero(int max, [bool condition = true]) int
随机一个不为零的整数