Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Ball adamball

View GitHub Profile
@adamball
adamball / random_alignment.rb
Created Nov 8, 2017
The Most Important Ruby Script
View random_alignment.rb
#!/usr/bin/env ruby
ethic = ['lawful', 'neutral', 'chaotic']
moral = ['good', 'neutral', 'evil']
r = Random.new
e = ethic[r.rand(3)]
m = moral[r.rand(3)]