Problem when I apply the grass material, it appears in the landscape in a lines pattern, so how I can make the grass appear random without those lines ?
try using MW landscape material try to break down the material workflow
What you are really asking about is eliminating tiling (un-tiling), texture-variation, randomosity, etc.. It’s a general-problem with texture based rendering (textures are tiles essentially) : how to eliminate seams & patterns across the repeating tiles.
There is much literature around manipulating UVs, sampling textures multiple times across different UVs and mixing them, other methods. Look for ‘eliminating tiling’ or ‘non repeating textures’ and the like.
For a practical example, look into the texture-bombing node to get an idea of what you can do.
Otherwise, generally-speaking, unless you do some fancy UV maths, you likely will want to sample your grass texture 2 or 3 times, each with a (slightly) different scale and/or rotation and/or translation, and mix them across some method, maybe height and/or noise. That’s the general gist. Unless you know enough maths to make interesting/coherent patterns in UVs so you can sample things just-once, you will need enough variation through multiple samples to get the variation you need.
