random_map fixed! Tests improved. dev_random fixed.