Fitting a fundamental using RANSAC is pretty straightforward. Being a iterative method, in a single iteration a random sample of four correspondences is selected from the given correspondence points and a transformation F is then computed from those points.
After a given number of iterations, the iteration which produced the largest number of inliers is then selected as the best estimation for H.
References: