Only instantiate in cameras view

hello I have 2 prefabs that instantiate randomly, but some are slightly out of the cameras view.

Can I tell unity to instantiate inside the cameras view only?

you must first compute the camera frustum and then randomize a point inside it.