move random backend to modules