minor updates in map_random feature, fixed shifting