They spawn randomly, you find them using the new scanner in the srv. It gives stronger signals and different type of signals, so you have to scout a bit. Nothing hardcore, though.
The materials themselves are planet dependent. Research is still being done on what variables are in play there. Material sources however are indeed seemingly random. They will spawn over time and can be reset by relogging just like any other instance.