Category : Word Processors
Archive   : EMACSCMD.ZIP
Filename : TRAND.CMD

 
Output of file : TRAND.CMD contained in archive : EMACSCMD.ZIP
set %try 0
set %sum 0
insert-string "Rolls: "
*nextry
set %roll &rnd 100
!if &greater $curcol 70
newline
insert-string " "
!endif
set %sum &add %sum %roll
insert-string &cat %roll " "
update-screen
set %try &add %try 1
!if &less %try 300
!goto nextry
!endif

newline
newline
insert-string &cat &cat "Sum of rolls: " %sum "~n"
insert-string &cat &cat "Average roll: " &div %sum 300 "~n"
update-screen
unmark-buffer


  3 Responses to “Category : Word Processors
Archive   : EMACSCMD.ZIP
Filename : TRAND.CMD

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/