This project is written in the concept of rapid prototyping. This means, it's only supposed to work, not to be expandable, readable, debuggable, ... In short, it is horrible code that didn't take long to write.
This is an android app randomly selecting my math exercises, priorizing the sheets I'm less good at.