convert random policy to a single module

Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>