CSharp examples for System:Random
get Random
using System.Drawing.Imaging; using System.Drawing; using System.IO;//from w w w. ja v a 2 s.com using System.Security.Cryptography; using System.Text; using System.Linq; using System.Collections.Generic; using System; public class Main{ public static string getRandom(int len) { Random rdm = new Random(); StringBuilder strbu = new StringBuilder(); for (int i = 0; i < len; i++) { strbu.Append(rdm.Next(10)); } return strbu.ToString(); } }