The kismet math library isn’t set up to be usable from outside the Engine module, so that’s why you get the linker error. You have two options:
Just call the C++ code directly. In this case that function is a very trivial wrapper so I would just do that.
Locally change KismetMathLibrary to be accessible outside of Engine. You would do this by Adding ENGINE_API to the front of the class definition and removing MinimalAPI. Look at GameplayStatics as an example of how to do this.
So I read this because I was having the same issue and was a little confused as to what code to call. To achieve what you’re looking for it should look like this: