API generate the email and phone number automatically

How can i generate the email and phone number automatically instead of manual input in each request? Provide the examples (Note: can provide Postman pre-request scripts or libraries as an example)