📜  flutter random int - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:54.633000             🧑  作者: Mango

代码示例2
import 'dart:math';

main() {
  var rng = new Random();
  for (var i = 0; i < 10; i++) {
    print(rng.nextInt(100));
  }
}