-
-
Save gstark/2360699 to your computer and use it in GitHub Desktop.
((rand().to_i)...rand((rand(5000).to_i))).send(Enumerable.instance_methods[rand(Enumerable.instance_methods.size)]) { rand(6) > 2 } |
I stop when I see File.delete or File.unlink or the first ` anywhwere
or when:
ruby-1.9.2-p290 :004 > rand.class
=> Turtles
Got you covered:
def rand
object = Object.new
def object.class; "Turtles" end
object
end
puts rand.class
begin; !!(((rand().to_i)...rand((rand(5000).to_i))).send(Enumerable.instance_methods.sample(1).first) { rand(6) > 2 })^32;rescue=>e;(e.methods-Object.methods)>rand(32);end
i call it safely random boolean
LMAO
Are you missing a #size on (e.methods - Object.methods) ? ZOMG, am I really code reviewing this!?!?!!?
ah you are right :(
I guess we'll count that as "MY MOVE" ? ;-)
begin;!!(((rand().to_i)...rand((rand(5000).to_i))).send(Enumerable.instance_methods.sample(15).zip(Object.instance_methods.sample(15)).permutation(1).select { |a| a.length > rand(2) }.flatten.slice(rand(10))) { rand(6) > 2 })^32;rescue=>e;e.methods.product(Object.methods).slice(rand(10),rand(10)).size>rand(32);end
BTW, nice use of #sample -- forgot that was on Array.
Have to use as many versions of rand as possible
Man Enumerable#lazy is going to be awesome.
require 'open-uri'
(0..open("http://www.random.org/integers/?num=1&min=5&max=100&col=1&base=10&format=plain&rnd=new").read.to_i).count {rand(6)>2}
# Fails since I guess I exceeded random.org rate limit or something.
Question.ask("Does no one here know how to use code formatting in Github Flavored Markdown?")
true
Yeah, nobody cares...
But none of your code is indenting! How can you stand it?
I think it adds a certain je ne sais quoi
touché
Edited comments just cause I like Jason P so much.
I just realized this is kinda like our mogrify app for Rails Rumble but with less porn and more code...
This gist got legit.
is there code styling for memes?
AN IDEA APPEARS.
this gist if full of WIN
this has the potential to quickly spiral out of control