You're right that most books, even testing books, don't cover this. They assume that you can use random generators of some sort to create your data. I think they also assume that the data needed by a particular application will be so application-specific that it would be hard to write about it in a specific way.
For example, if you have a mapping application, you might need to generate random points on an electric power network. If you don't have a very similar application, then that would be useless.
Sometimes there are also issues with defining the type of randomness. You may need to pick values from a non-uniform distribution. It's pretty hard to write about that sort of thing, at least in specific, without knowing what kinds of distributions you want.
So books just don't bother. If you can't find a big enough common audience for a book, the publishers won't print it.
There are some places on the net where you can find some random data that may help. For example, it's easy to create random strings of letters and numbers in code but it's harder to generate reasonable random names for more realistic testing of those fields. If you search, you can find some random name generators that do a reasonable job.
I like the lorem ipsum generator at
http://www.lipsum.com/ for random text that looks sort of like writing. It's useful for testing typographic programs. For example, it lets you see what paragraph breaks will look like.
I've posted a few examples that generate random values of various kinds.
http://www.vb-helper.com/howto_net_random_colors.html
http://www.vb-helper.com/howto_net_random_records.html
http://www.vb-helper.com/howto_net_random_strings.html
http://www.vb-helper.com/howto_vba_p..._elements.html
If you enter "random site:
vb-helper.com" in your favorite search engine, you may be able to find a few others.
If there are specific cases that you're having trouble with, let me know and I'll see if I can help.