Need help about terrain

How Can I make an infinity size of terrain or a terrain generator?