Basit Kod Oluşturma — C#
Basit Kod Oluşturma
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string a;
char[] harfler = {'a','b','c','d','e','g','h','ş','v','n','m','o','ı','u','t','y','r','p','s','z','x','k','l'};
int[] sayılar = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
Random r = new Random();
a=Convert.ToString(harfler[r.Next(22)])+Convert.ToString(harfler[r.Next(22)])+Convert.ToString(sayılar[r.Next(9)])+Convert.ToString(harfler[r.Next(22)])+Convert.ToString(sayılar[r.Next(9)])+Convert.ToString(sayılar[r.Next(9)]);
label1.Text = a;
}
}
}



