make_rand with comments