I want to create a script that will create random numbers from 0 to 30,000 and save them in a text file.
I want all the numbers to be in one line. I also want the numbers to be through 1 to 1,000,000 (I mean there should be 1 to 1,000,000 numbers in the file).
How do I do it? I want that script to test a program I made, and I want a script to automatically create numbers so I don't need to take time to write them on my own.
I also don't know anything about Linux scripting so if you can add some comments in your code I would be gladly accepted! :)
$RANDOM
variable.