Follow along with the video below to see how to install our site as a web app on your home screen.
Not: This feature may not be available in some browsers.
Dim x As String = "abcçdefgğhıijklmnoöprsştuüvyz"
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
MsgBox(random(6))
End Sub
Function random(ByVal uzunluk As Integer)
Dim i As Integer
Dim stringrandom As String
For i = 1 To uzunluk
Randomize()
stringrandom += x.Substring(Int(Rnd() * 29), 1)
Next
Return stringrandom
End Function
En iyi yöntem değil ama idare eder
buda nesi baya karışıkmış bak aram pek yoktur öğrenmeye çalışıyorum yıllardır
Olur olur sabır
Dim r As New Random
Dim harf As String
harf = ChrW(r.Next(Asc("A"), Asc("Z") + 1))
Label1.Text = Label1.Text & harf
kullanmayı bilmiyorum
Function random(ByVal uzunluk As Integer)
Dim x As String = "abcçdefgğhıijklmnoöprsştuüvyz"
Dim i As Integer
Dim stringrandom As String
For i = 1 To uzunluk
Randomize()
stringrandom += x.Substring(Int(Rnd() * 29), 1)
Next
Return stringrandom
End Function