Added dense random function.