Can I randomize levels?

How to randomize levels and attributes?

Its really the wrong question. An appropriate experimental design will generate the randomness you require but it will do better - it will ensure properties that allow the data to be modelled.