Added a prototype Randomize which should work.
Randomize function should be usable
Merging in the new randomize function.