I have tried the following answer to randomize post published date:
Update existing post dates to random dates
It worked but I need to randomize custom post type. How do I do that?
Read more here:: How to randomize published date for WordPress custom post type