Using Gradients to Create Random Distribution