1. Course
  2. Data types A
  3. Generate a random number

Generate a random number


Last updated: 8/22/2020 Difficulty: Easy

Create a C# program that prompts the user for 2 integers and displays a random number on the screen between those values. You can use the .NET Random object.

Input


                    
                    

Output



                    

Solution

Data types A

8 / 8

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising