Flutter 플러터 랜덤 숫자 간단 사용법 Random


Flutter 플러터 랜덤 숫자 간단 사용법 Random

코드 예시 import 'dart:math'; import 'package:flutter/material.dart'; class ExamplePage extends StatefulWidget { const ExamplePage({Key? key}) : super(key: key); @override State createState() => _ExamplePageState(); } class _ExamplePageState extends State { int number = Random().nextInt(100); // 0 ~ 99 랜덤 Widget build(BuildContext context) { return Scaffold(); } }


원문링크 : Flutter 플러터 랜덤 숫자 간단 사용법 Random