Skip to content

Instantly share code, notes, and snippets.

@Notoh
Created May 4, 2017 00:26
Show Gist options
  • Save Notoh/4173940f26ed6b3ce8a0769600acd8d0 to your computer and use it in GitHub Desktop.
Save Notoh/4173940f26ed6b3ce8a0769600acd8d0 to your computer and use it in GitHub Desktop.
im bored af
import java.util.Random;
/**
* meme machine meme machine im a motherf***ing meme machine
*/
public class notavirus {
public static void main(String[] args) {
notavirus notavirus = new notavirus();
}
private notavirus() {
new memes().start();
}
private class memes extends Thread {
@Override
public void run() {
for(;;) {
Random random = new Random(0x7fffffffffffffffL);
long l = random.nextLong();
double l1 = Math.abs(Math.sin(Math.cos(Math.floor(l)))) + -Math.abs(Math.cos(Math.sin(factorial(l)))) +
Math.abs(Math.tan(Math.sin(Math.cos(l))));
System.out.println(l + " " + l1);
}
}
private long factorial(long n) {
if(n<=1) {
return n;
}
return n * factorial(n - 1);
}
}
}
@Notoh
Copy link
Author

Notoh commented May 4, 2017

when im bored so i decide to screw with java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment