refactored random.json