Home

C# Simple Random Alphanumeric

I would suspect this would not suffice if your system requires properly tight security. It'll do for my simple needs though.

using System.IO;

string MyString = Path.GetRandomFileName();

This creates a random file with a random 3 character ending after a full stop. Just use replace to remove the full stop

MyString = MyString.Replace(".", "");

Reader's Comments

Post Your Comment Posts/Links Rules

Name

Comment

Add a RELEVANT link (not required)

Upload an image (not required)

No uploaded image
Real person number
Please enter the above number below




Home
Admin Ren's Biking Blog