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 GG NIGHT CREW, CHECK IN!
12-15-2008 04:59 AM
by Bunneh
Last post by virusdetected
Today 01:17 AM
3,769 Replies, 15,868 Views
Go to first new post It's been a while.
12-28-2008 12:26 PM
by Krorie
Last post by virusdetected
Today 01:17 AM
7 Replies, 67 Views
Go to first new post TwelveSky / 12Sky
Today 01:12 AM
Last post by virusdetected
Today 01:12 AM
0 Replies, 1 Views
Go to first new post snaaaake
Today 01:09 AM
Last post by virusdetected
Today 01:09 AM
0 Replies, 1 Views
Go to first new post Im buying limited...
Yesterday 11:39 PM
by Kospor
Last post by donovan
Today 01:04 AM
2 Replies, 10 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,728
GPoints: 1,601
iTrader: 0 / 0%
Connor Is Recognizable
Rep Power: 10
Connor's password gen - [source]

Have fun, don't rip.

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


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 online now

 
|G3|'s Avatar
 
Join Date: Feb 2007
Posts: 4,146
GPoints: 13,273
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: 22
Nice nice.
Very useful.
  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,728
GPoints: 1,601
iTrader: 0 / 0%
Connor Is Recognizable
Rep Power: 10
^_^
*cough+repisappreciated*
__________________

  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: 27
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)
TYLER!!!!!!!!!!!!! THIS GUY IS SO AWESOME OH MAN I LOVE HIM THIS IS KYO BTW

Male Tyler is offline
 
Tyler's Avatar
 
Join Date: Dec 2006
Location: New Hampshire
Age: 16
Posts: 4,717
GPoints: 5,739
iTrader: 10 / 100%
Tyler Is a Lord of AwesomenessTyler Is a Lord of AwesomenessTyler Is a Lord of AwesomenessTyler Is a Lord of Awesomeness
Rep Power: 18
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: 40
iTrader: 0 / 0%
Zim Is Recognizable
Rep Power: 6
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: 248
GPoints: 603
iTrader: 2 / 100%
rcadble Is Recognizable
Rep Power: 8
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,728
GPoints: 1,601
iTrader: 0 / 0%
Connor Is Recognizable
Rep Power: 10
Dude, you're a pretty much pro.
I'm just a beginner programmer XD Rofl.
Any chance you tutor me on MSN?
__________________

  Reply With Quote

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

PhearAlmighty is offline
 
Join Date: Nov 2007
Posts: 21
GPoints: 79
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: 79
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.1.0

All times are GMT -7. The time now is 01:18 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.17987394 seconds (100.00% PHP - 0% MySQL) with 19 queries