Random program with calculator