Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

hax my anus!!!!!

Name: Anonymous 2017-11-27 22:14

I like to troll tinychan's /prog/ramming board by posting useless code. One of my favorites is a program called "HMA.py" that simply outputs "HAX MY ANUS!!!!" (One of the lesser known internet memes) no matter what. Instead of using the simpler print "HAX MY ANUS!!!" command I use random integers and if and else statements to create a useless program.

So here is hax my anus in various languages.

Code: Python

#!/usr/bin/python
from random import randint
anus = randint(1, 1000)

if (anus < 500):
print "HAX MY ANUS!!"
else:
print "HAX MY ANUS!!"


Code: PHP

<?php
$hax = rand(1, 1000);
if ($hax < 500) {
print "HAX MY ANUS!!";
} else {
print "HAX MY ANUS!!";
};


Code: LUA

#!/bin/lua
hax = math.random(1,1000);
if hax < 500 then
print("HAX MY ANUS!");
else
print("HAX MY ANUS!");
end


Code: CGI/Perl

#!/usr/bin/perl
use strict;
use warnings;
my $range = 1000;
my $PINGAS = rand($range);
if ($PINGAS < 500) {
print "HAX MY ANUS!!!!!";
} else {
print "HAX MY ANUS!!!!!";
};


HAX MY ANUS!!!!!!!!!!!

Name: Analmouse 2017-11-28 22:56

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void) {
srand(time(NULL));
int hax = 1 + rand() % 999;
if (hax < 500)
puts("HAX MY ANUS!!");
else
puts("HAX MY ANUS!!");

return 0;
}



#include <iostream>
#include <random>
namespace std {
const char *hax_my_anus = "HAX MY ANUS!!";
}

int main(void) {
std::default_random_engine generator;
std::uniform_int_distribution<int> distribution(1, 1000);

int hax = distribution(generator);
if (hax < 500)
std::cout << std::hax_my_anus << std::endl;
else
std::cout << std::hax_my_anus << std::endl;

return 0;
}




extern crate rand;
use rand::Rng;

fn main() {
let anus: i32 = rand::thread_rng().gen_range(1, 1000);
if anus < 500 {
println!("HAX MY ANUS!!")
} else {
println!("HAX MY ANUS!!")
}
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List