It’d help a lot if you tell us why you need random raycasts in the outer diameter of a cone shape.
For example do you mean you want a series of raycasts in the cone to detect all it’s outer edge hits?
Or is this something like a gun shooting with a bullet spread pattern and you want to place the random spread of the bullets just in this area.
You can use shapecasts (Introducing generalized shapecasts) and make a part the shape and size of your cone. It’ll shoot 1 shapecast and pick up anything hit in that shape Part.