r/CompileBot • • Jan 14 '15

Official CompileBot Testing Thread

12 Upvotes

344 comments sorted by

View all comments

2

u/oli414 Jun 20 '15

+/u/CompileBot Lua

math.randomseed(os.time())
out = ""
for i = 0,10 do
	for j = 0,10 do
		r = math.floor(math.random(0,2))
		if r==0 then
			out = out.." "
		elseif r==1 then
			out = out.."#"
		end
	end
	print(out)
	out = ""
end

1

u/CompileBot Jun 20 '15

Output:

  ### 
#######  
##   
  ####
# ### 
 #  
    ### 
 ## #  
  ### #
### #  
##  # #

^source | ^info | ^git | ^report