From Infinite Improbability to Generative AI: Navigating Imagination in Fiction and Technology