def METHOD_NAME(self, n_bytes_on_end=PAGE_SIZE):
    """
    Check memory to see if it contains correct contents.
    :return: if data in memory is correct return PASS
            else print some wrong data and return FAIL.
    """
    self.f.seek(0)
    e = 2
    page = self.random_page(self.random_key)
    random.seed(self.random_key)
    p = copy.copy(page)
    failure = False
    for pages in range(self.npages):
        rand = random.randint(((PAGE_SIZE // page.itemsize) - 1) -
                              (n_bytes_on_end // page.itemsize),
                              (PAGE_SIZE // page.itemsize) - 1)
        p[rand] = pages
        pf = array.array(self.allocate_by)
        pf.fromfile(self.f, PAGE_SIZE // pf.itemsize)
        if not (p == pf):
            failure = True
            self.compare_page(p, pf)
            e = e - 1
            if e == 0:
                break
        p[rand] = page[rand]
    if failure:
        print("FAIL: Random series verification")
    else:
        print("PASS: Random series verification")