Changed randomly selecting element to properly work with unsigned long vs int to guarentee it'll work even on systems where ints and longs are not equal sizes.