I have tried to generate random thread in this way but it is not working.
There are three ways to generate random numbers in Jmeter
Working with epoch,
Working with CSV files,
Working with Random Variable Sampler,
for more details you can take a look from Here may be it will help you.