rnd_pos_by_record calls ha_rnd_pos, which does the counting
Attach a file by drag & drop or click to upload