is there a way? yes, but you don't really want to go there
set up a new table with an auto_increment id
then, any time you want to obtain a new row_id, lock this table, insert a row, grab the generated auto_increment value, use it to insert the new row for your other table, then come back to the auto_increment table and delete the row you just inserted (so that this table doesn't grow in size), then unlock the table
this will give you what you want, but make your application perform quite poorly