better random

Improved randomize