Need help with random biome generation

I

ItzJamPakt

Guest
Ok, so I’ve been following the tutorial series by Talent Lost On youtube for a top-down survival game like don’t starve. However on Part 14, he covers biome generation but doesn’t show how to randomly spawn them. I have tried multiple ways to change the code, and make it more friendly for random generation, but anything I do lags the game to the point of it being unplayable. If anybody could help, that would be so great!
 
Top