adding a weighted random selector module. This is not used yet.