random function moved to voice module.