Added some random gen to attribute priority func, but it isn't working right.  I need to re-work it.