function MONTE-CARLO-LOCALIZATION [pseudo-code](https://github.com/aimacode/aima-pseudocode/blob/master/md/Monte-Carlo-Localization.md)