If you use a package declaration, it must be the first thing in your Java file, and the import declarations must be put immediately after it.
import random.library.*;