■ Random 클래스의 nextInt 메소드를 사용해 정수 난수를 구하는 방법을 보여준다.
▶ 예제 코드 (DART)
1 2 3 4 5 |
import 'dart:math'; double size = random.nextInt(200).toDouble() + 100; |
■ Random 클래스의 nextInt 메소드를 사용해 정수 난수를 구하는 방법을 보여준다.
▶ 예제 코드 (DART)
1 2 3 4 5 |
import 'dart:math'; double size = random.nextInt(200).toDouble() + 100; |