Adding working random field generator

todo: unit test + documentation