A friend’s 1998 Mazda 121 Metro is randomly stalling but will start and run again over periods of time. There are no real patterns apart from this, and the vehicle seems to run normally when it's driving but shuts down just as randomly. Then it will start and run again over the next day or two. I haven't been able to actually see or drive the car as yet, but this is what's been happening according to the owner.
The first thing to do is drive the car yourself and see if there’s a pattern to what’s happening. Until then, you have even less idea of what’s going on and a diagnosis is all but impossible at that point. You might find that the car is cutting out after a period of driving (maybe caused by a dirty fuel filter) or when the engine reaches a certain temperature (possibly a sick crank angle sensor).
I’d also recommend an electronic scan to see if any fault codes show up. These codes can be very specific and will often lead you straight to the root of the problem.