Hack Forums
[.NET] [help plz] email account generator [help plz] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [help plz] email account generator [help plz] (/showthread.php?tid=1810623)



[help plz] email account generator [help plz] - Project13 - Oct 11, 2011

hi guys i'v made the email generator but i would like to improve it
Code
Public Function Genme(ByVal intLength As Integer, Optional ByVal strAllowedCharacters As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")

        Randomize()
        Dim chrChars() As Char = strAllowedCharacters.ToCharArray
        Dim strReturn As New StringBuilder
        Dim grtRandom As New Random
        Do Until Len(strReturn.ToString) = intLength
            Dim x As Integer = Rnd() * (chrChars.Length - 1)
            strReturn.Append(chrChars(CInt(x)))
        Loop
        Return strReturn.ToString & "@hotmail.com"
this generats emails such as [email protected]. Is it possible to make it generate proper words




* - deiski - Oct 11, 2011

(Oct 11, 2011 02:55 AM)Project13 Wrote:  hi guys i'v made the email generator but i would like to improve it
Code
Public Function Genme(ByVal intLength As Integer, Optional ByVal strAllowedCharacters As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")

  Randomize()
  Dim chrChars() As Char = strAllowedCharacters.ToCharArray
  Dim strReturn As New StringBuilder
  Dim grtRandom As New Random
  Do Until Len(strReturn.ToString) = intLength
    Dim x As Integer = Rnd() * (chrChars.Length - 1)
    strReturn.Append(chrChars(CInt(x)))
  Loop
  Return strReturn.ToString & "@hotmail.com"
this generats emails such as [email protected]. Is it possible to make it generate proper words

Bro you just copied my whole thing from the other thread, You skank.


* - Penthos - Oct 11, 2011

(Oct 11, 2011 03:46 AM)Cyan Wrote:  Bro you just copied my whole thing from the other thread, You skank.

Wow, and he's dumb enough to post asking for help on it ^^

Lulz ...


* - Mystic - Oct 11, 2011

(Oct 11, 2011 03:46 AM)Cyan Wrote:  Bro you just copied my whole thing from the other thread, You skank.

Oh wow lol, and OP has the nerve to call it his own. >_<
"hi guys i'v made the email generator"


* - Project13 - Oct 11, 2011

Cyan will understand soon
i'll say he needed credit and i should have gave it to him soz



* - ΔDemon - Oct 11, 2011

He gets credit, you get nothing. That was a full copy-paste.


* - MoBaT - Oct 11, 2011

You will probably need a text file with a full list of names.



* - Project13 - Oct 11, 2011

(Oct 11, 2011 04:52 AM)MoBaT Wrote:  You will probably need a text file with a full list of names.

ok thanks for the tip mobat ill try it out tomorrow