Click here to Skip to main content
15,166,728 members

Comments by Member 11478643 (Top 8 by date)

Member 11478643 30-Mar-15 6:22am View
   
//random is a class
private readonly Random _rng = new Random();
Member 11478643 30-Mar-15 6:22am View
   
private const string Chars = "abcdefgijkmnopqrstwxyz23456789abcdefgijkmnopqrstwxyz";
Member 11478643 30-Mar-15 5:03am View
   
Random string function:

private string RandomString(int size)
{
var buffer = new char[size];

for (var i = 0; i < size; i++)
{
buffer[i] = Chars[_rng.Next(Chars.Length)];
}
return new string(buffer);
}
Member 11478643 30-Mar-15 5:01am View
   
Deleted
Random string function:

private string RandomString(int size)
{
var buffer = new char[size];

for (var i = 0; i < size; i++)
{
buffer[i] = Chars[_rng.Next(Chars.Length)];
}
return new string(buffer);
}
Member 11478643 30-Mar-15 3:34am View
   
ok
Member 11478643 30-Mar-15 3:21am View
   
string newencrypt=RandomString(15).ToString() + returnValue;

add this .
Member 11478643 9-Mar-15 3:51am View
   
my pleasure :)
Member 11478643 4-Mar-15 1:30am View
   
U can use window services.