Make fixtures generate IDs according to their limit

Hello,

If the primary key field's limit was defined at the schema definition level, previously fixtures would generate a random ID which maximum would be 2^30 - 1 and would not take into account the limit.

Fixes #12901

Have a nice day.