DEV Community

Discussion on: How do you do random?

Collapse
bobnudd profile image
Ash Grennan

C#

var random = new Random();
var i = random.Next(0, 11);

Less elegant than some examples I'll admit