A quick program to test a random function in rails. (help from stackoverflow)