[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VMs: algorithm to generate VMS like text



I would certainly appreciate an email of the code as I could convert it to delphi object pascal. I see where you are going here and it seems to be along the same lines or similar as my method. I will be trying monkey on my samples. If we both try this and compare results we might be able to determine which of us may be going in the same direction.
 
Keep on keeping on :-)
 
Jeff
Brett Cotton  Wrote

Hi all,
 
a week or two ago a there was a post saying that it would be difficult
to generate VMS text using a an algorithm. I brought together some thoughts that I had recently and now have a (not quite perfect yet) program that will generate any amount of VMS style text. Here is the output of the program when generating 15 lines of text:
 
Input number of lines ?15                                
OE PTPTCG HCCO2G DC8G AIR AM TC8GHC8 SOHAET2 TC8G        
TCODCAR DTO8TCCG TODAE TCOE 4OTCG G OR HAM 4OR 8G        
OE R 8AN TCC8ODG TODC8G AK 4OE 4OHAR AE OE TG TODAI8AM   
SOEOTC8G OPTG OFTAM 4ODT8G 4OHAITE 4ORAN TOPTODAE        
TC8TAETC8G OHCTCCCG R 4OHG8G G 4O8G 4O8AIIR E 4OHTOR     
8AM TCCG ODZTOE A8AM 8G8G O OR 4ODCOHAM OG 8GTC8G        
TG SO8G O8G EDAM 8AR 4OE 4OE8G 8G8AM ESOE ETG SO ODCC8AECG
DC 8G HSOHSCG AM DC2 OE 8AR 4O8A TCG 8G GOCC8G GDG       
PAM SC8AR TC8AK 8AIR E TCCODG T! C2 8GDAK 8AM DCC8 T8AM    
TCG G HAECOK 8G 4OHAEDG ODODCCCAEAEHZCCG SDAR 4ODCOM     
8SOE TCG HCC8 AE 4OE OHTCCCGHZC8G 8G S8G OP8G TCOTC8G    
4ODS8 4ODCG G TCG8ODAM TC8 4ODZG AIRAR HCG OE SOE        
8G HZCOCCOTCG 4OE ODAE2AM 4OR 8G OHTC8AK 4ODODTODODAM    
4OHO 4O8AIRO8G 2AM DZC OHTCAM 8G 8G 8G TCO8 8AETCOE      
AM 4OR AM OR8AM SODCCCG EDC 4OPTO OE TOE 4OHG ODT8AM     
Done
 
I will be happy to post the code on the list or email it privately if anyone is interested. It is written in Unibasic, the programming language that comes as part of the Unidata RDBMS and could be converted to another
language quite easily, program length is 94 lines.
 
I have yet to run it through Monkey but I am fairly confident, based on a visual inpection, that this will show that the text has VMS like entropy.
 
Any comments and suggestions will be gratefully received.
 
Brett