This is a job for the canonical tag. in your case you would need to add to the head
<link rel="canonical" href="https//example.com/thispage/random text" />
Assuming thats how you want it to appear in google search results
It's a powerful and often underused tag within websites, It helps remove duplicate content and also cut down the variations of URLS for the same page. Its a clear signal to google which is the correct page.
Consider the following as well
On most websites all the above would render the same page but the url is different, So you would have 5 versions of the same page producing by its very nature duplicate content.
The use of a canonical tag tells google which is the correct one.
And yes I did also mean to put in Example.com with a capital E as that is still a separate page in googles eyes, Seeing as you have no control how users may link to you every page on your site should have a self referencing canonical tag.
Hope that makes sense.