added TODO
move random functions to their own module