rewrite random list creation functions