Prev: [FT] Hardened Systems Next: Re: [FT] SMLs, Type 3 & Tactics

Re: The GZG Digest V1 #91

From: Charles Choukalos <chuckc@b...>
Date: Tue, 12 Jan 1999 11:10:50 -0500
Subject: Re: The GZG Digest V1 #91

In a message dated 99-01-11 09:01:12 EST, you write:

<< Dead Meat vs the 6 thrust equivalent with 4000 or so Type 1s. But
 rolling 4000 dice would be tedious at best :) >>
use Qbasic:
randomize timer
for a= 1 to 4000
 b=int(rnd*6)+1
 if b=4 or b=5 then c=c+1
 if b=6 then c=c+2
next a
print c

use that program, all 4k dice are rolled.
- -Stephen

---------Stephen man you're wacked  ........

1.  Qbasic sucks....... Perl Rules!!!!!
2.  While loop man..... what about rerolls ( Ya gots to have rerolls ;)
)

so:

randomize timer
a = 0
while (a < 4000)
  b=int(rnd*6)+1
  if b=4 or b=5 then c=c+1
  if b=6 then begin
     c=c+2
     a=a-1
  end
next a
print c

(this way when you roll a 6, then you get to roll another die... per
FTFB 
rules.)

chuck

Prev: [FT] Hardened Systems Next: Re: [FT] SMLs, Type 3 & Tactics