Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Is Random working?

$
0
0

Hello!
I wanted to add to my C# file in Xamarin.Forms this part

Random rnd = new Random(); int Number = rnd.Next(1, 3);

However Visual Studio keeps telling that there is no definition Next in Random, this is the first time I see this issue; Console Apps have the same code and there's no problem with them.
P.S. I use System.Collections.Generic


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>