Pseudo-random learning journey using Prolog