Random systems with complete connections