Генератор слов - VB
Формулировка задачи:
Нужно зделать генератор слов на C++ или на Visual Basic с учётом правил граматики(не начинать слова с мягкого знака и т.д.). Помогите пожалуйста!!!
Решение задачи: «Генератор слов»
textual
Листинг программы
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Random rnd = new Random();
Char[] pwdChars = new Char[26] {'a','b','c','d','e','f','g','h','i','j','k','l','n','o','p','q','s','t','u','v','w','x','y','z'};
textBox1.Text = String.Empty;
for (int i = 0; i < 10; i++)
textBox1.Text += pwdChars[rnd.Next(0, 25)];
}
}
}