moved random graph functions

only makes them when needed to measure now.