added random number generator
started dispatch algos