mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#108402 19/01/05 07:33 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
well he does have a semi functioning brain
i assumed he would work that out for himself


The Kodokan will move you, one way or another.
#108403 19/01/05 07:36 AM
Joined: Mar 2004
Posts: 96
G
Gremel Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Mar 2004
Posts: 96
thanks

#108404 19/01/05 07:37 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
didnt know you could use $r


The Kodokan will move you, one way or another.
#108405 19/01/05 07:38 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
if u still want that tutorial let me know
or just wait till www.mirc.net is back up and go look for it there
i dont have the url


The Kodokan will move you, one way or another.
#108406 19/01/05 07:40 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Well you can use $r, but to be honest it's best for readability to use $rand, also $r is an old identifier, not mentioned in the help file anymore, it might be gone some day.

I only put it because I know what I'm doing (and I like shorter code), though perhaps I should start using $rand.

Greets


Gone.
#108407 20/01/05 05:36 AM
Joined: Mar 2004
Posts: 96
G
Gremel Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Mar 2004
Posts: 96
I switched it to $rand though, so no worries. Thanks once again.

#108408 20/01/05 09:51 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
Well you can use $r, but to be honest it's best for readability to use $rand, also $r is an old identifier, not mentioned in the help file anymore, it might be gone some day.

I only put it because I know what I'm doing (and I like shorter code), though perhaps I should start using $rand.

Greets


Do u know if it just happned to br $r or if it might have been shortened on purpose to let you get the max out of a $($str($!r(...) $!+ $chr(32),N),2) ? Becuase thats where i first saw a $r used to build a 20 letter random text values

#108409 20/01/05 10:00 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
I have no idea why it was added, only Khaled knows. The fact that it's shorter is probably the only reason for being added, and at the same time the reason for being depreciated. Since $r doesn't really indicate what the identifier does, in comparison with other built-in identifiers.

I looked in the full versions.txt, and the first mention of $r is:

24/10/95 - mIRC v3.72
24.Added $r(v1,v2) identifier, returns random number
or letter between v1 and v2.

The first mention of $rand is:

08/01/99 - mIRC v5.5
124.Fixed freeze bug in $rand().

It's very doubtful that Khaled will have read this thread, though perhaps if he does he can give us some more info smile

Greets


Gone.
#108410 21/01/05 12:30 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
just wondered as I dont know of any other single letter identifiers, and this one would be something i could see used often in a $str

#108411 21/01/05 11:22 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Yeah exactly, it is handy in $str, I've used it often, and we both used it in that Generating thread.


Gone.
Page 2 of 2 1 2

Link Copied to Clipboard