Visual Basic Generating Random Letters

The sample code for generating random letters in the Visual Basic programming language is given below.

Module ModuleTest Sub Main() Dim random As Random = New Random() Dim letters As String = "abcdefghijklmnopqrstuvwxyz" Dim num As Int16 = random.Next(0, 26) Console.WriteLine(letters.Substring(num, 1)) Console.ReadLine() End Sub End Module


You May Interest

Visual Basic Get Now

Visual Basic Finding the Operating System Username

Visual Basic String Using StartsWith

Visual Basic Powering a Number

Visual Basic How To Find The Average Of 10 Numbers Using A While ...