The default ID is too long, just want to edit it to just 10 random numbers..
Through the code, you can provide your own IDs by changing the ID property using the properties panel.
As for the DB collection records- the system creates the default "_id" values when records are created through data binding, CM, etc.
If you want the records to have their own IDs, you need to make sure they are unique. Random numbers, of course, are not.