About bills / legislature

Random things go here

About bills / legislature

Post by wan26 on Mon Jul 16, 2012 5:34 pm
([msg=68101]see About bills / legislature[/msg])

Decided to express my view through Python as I was bored
Code: Select all
import random
import time

legltn = ['A','B','C','D','E','F','G','H','I','J','K','L','M',
          'N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
one = 'Act'
another = 'The'


def yawn():
    zzzz = random.randint(0,25)
    zzz = random.randint(0,25)
    zz = random.randint(0,25)
    z = random.randint(0,25)
   
    return another+' '+legltn[zzzz]+legltn[zzz]+legltn[zz]+legltn[z]+' '+one

money = 1

while money:
    print yawn()
    time.sleep(1) # or 6048001
User avatar
wan26
Experienced User
Experienced User
 
Posts: 91
Joined: Sun Jan 22, 2012 6:46 pm
Blog: View Blog (0)


Re: About bills / legislature

Post by WallShadow on Mon Jul 16, 2012 6:19 pm
([msg=68102]see Re: About bills / legislature[/msg])

Decided to express my view through Java as I was bored and don't have Python
Code: Select all
public class Gov {
   
   private final static char [] legltn = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
   
   private final static String another = "The";
   private final static String one = "Act";
   
   
   
   public static void main(String [] args) {
      
      int tMoney = 1;
      
      while(tMoney > 0) {
         
         System.out.println(yawn());
         
         try {
            
            Thread.sleep(1000);
            
         } catch (InterruptedException e) {
            
            e.printStackTrace();
            
         }
         
      }
      
   }
   
   
   
   public static String yawn() {
      
      int zzzz = (int)(Math.random() * 26);
      int zzz = (int)(Math.random() * 26);
      int zz = (int)(Math.random() * 26);
      int z = (int)(Math.random() * 26);
      
      return another + ' ' + legltn[zzzz] + legltn[zzz] + legltn[zz] + legltn[z] + ' ' + one;
      
   }
   
   
   
}
User avatar
WallShadow
Contributor
Contributor
 
Posts: 626
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)


Re: About bills / legislature

Post by wan26 on Mon Jul 16, 2012 6:59 pm
([msg=68103]see Re: About bills / legislature[/msg])

Neat, I like it, I was waiting for a certain abbreviation to come up in mine, but I knew it would be a waste of time and gave up. Although I might add it as an if, so it stops 'ROFL'.

edit- Also that reminds me I should really try out Java some more.
User avatar
wan26
Experienced User
Experienced User
 
Posts: 91
Joined: Sun Jan 22, 2012 6:46 pm
Blog: View Blog (0)


Re: About bills / legislature

Post by WallShadow on Mon Jul 16, 2012 7:34 pm
([msg=68104]see Re: About bills / legislature[/msg])

We should start a political campaign with this program as our banner. We shall be known as the "Truthful-Bureaucrats Against Governments Gradually Elevating Restrictions" party or the "T-BAGGER" party.

We shall forge an empire. Together.


UNITED WE STAND, DIVIDED WE FALL!



THIS...

IS...


THE INTERNET!!!!!!!!!!!!!!!!!!




-edit

Why would you want to stop your program at 'The Ridiculously Overpriced Flounder Limitations Act' ? That's a terrible choice. Everyone knows that the ROFL act will kill the already dying fish industry!!!
User avatar
WallShadow
Contributor
Contributor
 
Posts: 626
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)


Re: About bills / legislature

Post by wan26 on Tue Jul 17, 2012 2:56 am
([msg=68114]see Re: About bills / legislature[/msg])

I can imagine it now, this simple programs execution being projected onto an abandoned building. And passers by wondering what it is...

Also it is true that it should never stop and continue on for eternity! As for the fish industry, it would be funny if they tried to create similar Acts in terms of power and scope...

This is why I like off-topic now, I can say this stuff ha
User avatar
wan26
Experienced User
Experienced User
 
Posts: 91
Joined: Sun Jan 22, 2012 6:46 pm
Blog: View Blog (0)


Re: About bills / legislature

Post by LoGiCaL__ on Tue Jul 17, 2012 6:07 am
([msg=68116]see Re: About bills / legislature[/msg])

wan26 wrote:This is why I like off-topic now, I can say this stuff ha


Yeah, that's why us devilish mods try to tell people to post in the correct forums. It keeps shit more organized and easier to find. Hell, some brand new members find the correct sub forums to post in compared to some of the ones that's been around here for a while. Anyways, glad to see you enjoy it. Keep the posts a rolling in.
User avatar
LoGiCaL__
Addict
Addict
 
Posts: 1063
Joined: Sun May 30, 2010 12:33 pm
Blog: View Blog (0)



Return to Off-Topic

Who is online

Users browsing this forum: No registered users and 0 guests