Probably could do that. You can calculate how many chunks you need to generate and loop the process. Or cheat and create a map where one edge goes to the other, and loop that sucker ;)