How to get random point in boxcollision in cpp?

How to get random point in boxcollision in cpp?(for exampl Random Point in Bounding Box in Blueprint)

UKismetMathLibrary::RandomPointInBoundingBox(const FVector& Origin, const FVector& BoxExtent);

Enjoy

5 Likes

Verry thanks

If you are happy with the solution, feel free to mark it as answered