Say I have 2 endpoints A and B. I would like to use W. Mathematica to generate a random walk between these two endpoints in a three-dimensional space. Es.: A=Point[{0,0,0}] and B=Point[{1,1,1}]. I would like to have as an output the random trajectory of the particle. How can I do this? If I use
Line[Accumulate[RandomChoice[{-1, 1}, {1000, 3}]]]
As suggested in the documentation, I would have to complete each output with a trajectory segment that would bring the particle to point B. Yet in this way the last segment may be "long" and not "enough" random. How can I avoid that or simply generate a random trajectory that links two points?
NormalDistribution
steps so that it is valid to rotate?) $\endgroup$