flutter Dart 生成随机数

8,047 阅读1分钟

import 'dart:math';

Random().nextInt(10)