Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post mOBSCENE's score sender...
Today 01:11 AM
Last post by 1x1
Today 04:33 AM
6 Replies, 30 Views
Go to first new post I *think* I just got...
Today 02:03 AM
Last post by Hodizzle
Today 03:07 AM
6 Replies, 33 Views
Go to first new post Lil Wayne
10-21-2008 09:33 PM
Last post by Toffie
Today 02:49 AM
46 Replies, 391 Views
Go to first new post forgot my birthday i put...
10-30-2008 09:27 AM
by dookie
Last post by seleporx
Today 02:29 AM
23 Replies, 490 Views
Go to first new post Plastic Surgery Hell
Yesterday 08:02 PM
by Li-Shun
Last post by Hodizzle
Today 01:51 AM
11 Replies, 62 Views
Reply
 
LinkBack Thread Tools Display Modes

 Connor's password gen - [source]
Old 11-07-2007, 11:51 AM   #1 (permalink)

Male Connor is offline
 
Connor's Avatar
 
Join Date: Dec 2006
Location: Preston
Age: 15
Posts: 2,726
GPoints: 1,353
iTrader: 0 / 0%
Connor Is Recognizable
Rep Power: 9
Connor's password gen - [source]

Have fun, don't rip.

HA don't rip, bye bye lil'boy.
__________________
Formerly Connor

Last edited by nomhak; 12-21-2007 at 06:10 PM. Reason: for ripping
  Reply With Quote

 
Old 11-07-2007, 11:56 AM   #2 (permalink)

Male |G3| is offline

 
|G3|'s Avatar
 
Join Date: Feb 2007
Posts: 3,781
GPoints: 6,415
iTrader: 9 / 100%
|G3| Is a Subordinate to Kyo|G3| Is a Subordinate to Kyo|G3| Is a Subordinate to Kyo|G3| Is a Subordinate to Kyo|G3| Is a Subordinate to Kyo|G3| Is a Subordinate to Kyo|G3| Is a Subordinate to Kyo
Rep Power: 21
Nice nice.
Very useful.
__________________
proxy sites | proxy | web proxy | glype proxy
GAIA FLP GENERATOR


Thanks Hatz ;3

  Reply With Quote

 
Old 11-07-2007, 12:19 PM   #3 (permalink)

Male Connor is offline
 
Connor's Avatar
 
Join Date: Dec 2006
Location: Preston
Age: 15
Posts: 2,726
GPoints: 1,353
iTrader: 0 / 0%
Connor Is Recognizable
Rep Power: 9
^_^
*cough+repisappreciated*
__________________
Formerly Connor
  Reply With Quote

 
Old 11-07-2007, 05:44 PM   #4 (permalink)
.:SW:.

Male Silverwing614 is offline
 
Silverwing614's Avatar
 
Join Date: Oct 2007
Location: CA
Age: 15
Posts: 447
GPoints: 23
iTrader: 1 / 100%
Silverwing614 Is Recognizable
Rep Power: 4
What type of file is it and how do you use it?
  Reply With Quote

 
Old 11-08-2007, 06:16 PM   #5 (permalink)
Super Moderator

Male Tyler is offline
 
Tyler's Avatar
 
Join Date: Dec 2006
Location: New Hampshire
Age: 16
Posts: 4,337
GPoints: 2,270
iTrader: 8 / 100%
Tyler Is a Lord of AwesomenessTyler Is a Lord of AwesomenessTyler Is a Lord of AwesomenessTyler Is a Lord of Awesomeness
Rep Power: 15
It's not really a file type. o_O
It's coding lol.
And it's VB I believe.
__________________

  Reply With Quote

 
Old 11-08-2007, 07:16 PM   #6 (permalink)
Zim
Underground

Zim is offline
 
Zim's Avatar
 
Join Date: Apr 2007
Posts: 356
GPoints: 29
iTrader: 0 / 0%
Zim Is Recognizable
Rep Power: 5
Fo reals dood
I like it. I used it a couple times :P
ANd how to add spunk to code
" 'Self explanatory."
ConnoUr BaDASS
  Reply With Quote

 
Old 11-25-2007, 01:39 PM   #7 (permalink)
Underground

Male rcadble is offline
 
Join Date: Sep 2006
Posts: 227
GPoints: 60
iTrader: 0 / 0%
rcadble Is Recognizable
Rep Power: 7
Why not make it in complete function form? You should try make it a function where your user can just input the settings (as it is now, you'd have to make a new function every time you wanted to change the length).

Code:
Public Function GenerateCodeRcad(ByVal lngLength As Integer) As String
    Dim i As Integer
    Dim strRand As String
    Dim intRand As Integer
        Randomize
        For i = 0 To lngLength Step 1
            intRand = Int(Math.Rnd() * 3) + 1
            If intRand = 1 Then
                strRand = strRand & Int(Math.Rnd() * 10)
            ElseIf intRand = 2 Then
                strRand = strRand & Chr(Int(Math.Rnd() * (26) + 65))
            ElseIf intRand = 3 Then
                strRand = strRand & Chr(Int(Math.Rnd() * (26) + 97))
            End If
        Next
        GenerateCodeRcad = strRand
End Function
Unfortunately, the mid function is pretty slow for vb6, so using chr() with random ascii values would speed it up. (Mine averaged 0.93 microseconds faster, by testing them both 100,000 times).

Last edited by rcadble; 11-25-2007 at 01:50 PM.
  Reply With Quote

 
Old 11-27-2007, 03:36 AM   #8 (permalink)

Male Connor is offline
 
Connor's Avatar
 
Join Date: Dec 2006
Location: Preston
Age: 15
Posts: 2,726
GPoints: 1,353
iTrader: 0 / 0%
Connor Is Recognizable
Rep Power: 9
Dude, you're a pretty much pro.
I'm just a beginner programmer XD Rofl.
Any chance you tutor me on MSN?
__________________
Formerly Connor
  Reply With Quote

 
Old 12-05-2007, 06:41 PM   #9 (permalink)
Full Member

PhearAlmighty is offline
 
Join Date: Nov 2007
Posts: 21
GPoints: 74
iTrader: 0 / 0%
PhearAlmighty Is gaining popularity
Rep Power: 0
Quote:
Originally Posted by rcadble View Post
Why not make it in complete function form? You should try make it a function where your user can just input the settings (as it is now, you'd have to make a new function every time you wanted to change the length).

Code:
Public Function GenerateCodeRcad(ByVal lngLength As Integer) As String
    Dim i As Integer
    Dim strRand As String
    Dim intRand As Integer
        Randomize
        For i = 0 To lngLength Step 1
            intRand = Int(Math.Rnd() * 3) + 1
            If intRand = 1 Then
                strRand = strRand & Int(Math.Rnd() * 10)
            ElseIf intRand = 2 Then
                strRand = strRand & Chr(Int(Math.Rnd() * (26) + 65))
            ElseIf intRand = 3 Then
                strRand = strRand & Chr(Int(Math.Rnd() * (26) + 97))
            End If
        Next
        GenerateCodeRcad = strRand
End Function
Unfortunately, the mid function is pretty slow for vb6, so using chr() with random ascii values would speed it up. (Mine averaged 0.93 microseconds faster, by testing them both 100,000 times).

rcadble:
your code generates one extra character

Code:
Public Function GenerateCodeRcad(ByVal lngLength As Integer) As String
    Dim i As Integer
    Dim strRand As String
    Dim intRand As Integer
        Randomize
        lnglenth = lnglenth - 1
        For i = 0 To lngLength Step 1
            intRand = Int(Math.Rnd() * 3) + 1
            If intRand = 1 Then
                strRand = strRand & Int(Math.Rnd() * 10)
            ElseIf intRand = 2 Then
                strRand = strRand & Chr(Int(Math.Rnd() * (26) + 65))
            ElseIf intRand = 3 Then
                strRand = strRand & Chr(Int(Math.Rnd() * (26) + 97))
            End If
        Next
        GenerateCodeRcad = strRand
End Function
  Reply With Quote

 
Old 12-17-2007, 08:42 PM   #10 (permalink)
Full Member

PhearAlmighty is offline
 
Join Date: Nov 2007
Posts: 21
GPoints: 74
iTrader: 0 / 0%
PhearAlmighty Is gaining popularity
Rep Power: 0
IDC if this is a double post :(

Rip?
http://www.gamerzplanet.net/forums/v...ml#post1165378
http://www.paidforum.net/showthread.php?t=378
http://www.platinax.co.uk/forum/8513...generator.html

PM'ed an admin btw.
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 04:41 AM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.15266204 seconds (100.00% PHP - 0% MySQL) with 19 queries