title: How to make Image Random Generator in flutter?
body: <p>hey guys <strong>I'm new to Flutter &amp; Dart</strong> and I'm  trying to make an app that will show a different image every time the user opens it,,
  I marked this method <code>randomNum</code>  but I know it will not work for long because I want the user to download their own images with the default images that I have,</p>
  <p>my method is to make the images have the same name but with different numbers and make a RandomNumber generator :</p>
  <pre><code>Random random = new Random();
  int randomNum = random.nextInt(3) + 1;
  
  class _qouteeState extends State&lt;qoutee&gt; {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        debugShowCheckedModeBanner: false,
        home: Scaffold(
          body: SafeArea(
            child: Expanded(
              flex: 3,
              child: Container(
                color: Colors.grey[300],
                child: Center(
                  child: Image.asset('images/q$randomNum.jpg'),
                ),
              ),
            ),
          ),
        ),
  
      );
    }
  }
  </code></pre>
  <p>images :
  <a href="https://i.stack.imgur.com/VoXUk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VoXUk.png" alt="enter image description here" /></a></p>
  <p><strong>So how can I make Random image function without making the images have the same name</strong></p>