NewBlock returns an error if it can't find the block in the library; added random block