Mathematical tasks generator