Remove ran_int sub.
Divide populate into subs.
Moved populating to new  module and added populate options.