change dist x-axis range to be more meaningful
added reproducibility function