Estimates the number of the magic squares by random sampling