Skip to main content

Posts

Showing posts from January, 2017

Out of curiosity a port of love letter generator in c#

This  is   for  my Harley - Queen(still waiting):  this   is  a cook up code to tinker around: using  System; using  System . Text;   namespace  LoveLetter {      internal   class   Program     {    static   string  NextRandomWord( string [] arr, Random rand)  =>  arr[rand . Next( 0 , arr . Length)];          private   static   void  Main()         {              var  salutation1  =   new   string [] {  "Beloved" ,  "Darling" ,  "Dear" ,            "Dearest" ,  "Fanciful" ,  "Honey"  };              var  salutation2  =   new   string [] {  "Chickpea" ,  "Dear" ,                        "Duck" ,  "Jewel" ,  "Love" ,  "Moppet" ,  "Sweetheart"  };              var  adjs  =   new   string [] {  "affectionate" ,  "amorous" ,  "anxious" ,              "avid" ,  "beautiful" ,  "breathless" ,  "