飞镖使用的随机数生成器

时间:2020-05-27 09:54:13

标签: dart random

您知道Dart语言的Random类的nextInt方法中使用哪个随机数生成器吗?

https://api.dart.dev/stable/2.8.3/dart-math/Random/nextInt.html

文档说:

nextInt method

int nextInt (
int max
)

Generates a non-negative random integer uniformly distributed in the range from 0, inclusive, to max, exclusive.

Implementation note: The default implementation supports max values between 1 and (1<<32) inclusive.

0 个答案:

没有答案