mIRC Home    About    Download    Register    News    Help

Print Thread
#129164 02/09/05 10:59 PM
Joined: Feb 2003
Posts: 83
L
LO_KEY Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
Anyone got any ideas on how i could make a probability idenitifer...

i want to be able to set the probability a number/letter will be used for a script.
thanks in advance for any help.


any help would make me happy
#129165 02/09/05 11:29 PM
Joined: Jul 2005
Posts: 40
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Jul 2005
Posts: 40
That's mathematics *_*


j0k3r @ k4s.ch
#129166 02/09/05 11:56 PM
Joined: Feb 2003
Posts: 83
L
LO_KEY Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
that it is.


any help would make me happy
#129167 03/09/05 01:05 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Have any examples of how you want this done, people usually don't look twice without examples of how you want these tasks laid out. smile

-Andy

#129168 03/09/05 04:25 AM
Joined: Feb 2004
Posts: 206
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Feb 2004
Posts: 206
Quote:
Anyone got any ideas on how i could make a probability idenitifer...

i want to be able to set the probability a number/letter will be used for a script.
thanks in advance for any help.


At a rough guess:
Code:
alias probkey {
  var %num_letters = 26
  var %num_num = 10
  var %num_letterstates = 2
echo -a Probability that a particular letter or digit will be used next is 1 in $calc(%num_letterstates * %num_letters + %num_num)
}


Cheers,

DK


Darwin_Koala

Junior Brat, In-no-cent(r)(tm) and original source of DK-itis!

Link Copied to Clipboard