extracted random var class to its own file and added ability to speicify the values taken, the values now start at 0 so all Rvar and Factors values taken start at 0