Create an array with random numbers
I will use this method inside my tests class 


Your plan is to generate random data to test your thing. Suppose a test fails.  How are you planning on debugging it with the data that caused it to fail? 

Don't randomize tests.  Generate the random test data once, and save it, and then use it over and over again.