At least if you can sample the relevant space reasonably accurately, otherwise it becomes really slow.