The Bamana code is an algorithm that is both simple and robust : a system that generates pseudo-random numbers from deterministic chaos. This binary system, created in West Africa, was introduced to Spain in the 12th century, taken up by Leibniz in "De Combinatoria", then inspired George Boole — leading to Boolean algebra, and finally to the digital computer.