Moved random components out of core library