Fluctuation code by Gustavo de Brito