Fixed #2

Added setRandomize function to the machines objects. This function accepts a function or and integer as argument ;)