The random module is a Python module.... Do you need to select random attributes from a single field? All fields? Some fields?
Please expand on your question. Give an example.
Add a field to your table
Do a field calculation as described here
or you can substitute random.randint in place of random.random if you want integers.
a = random.randint(1, 100) a 96
or even draw from a uniform distribution
u = int(random.uniform(0, 100)) u 54
or other types of distributions depending on your needs