Trying to get personal Library to compile

Hello everyone,
So I'm fairly new to programming and I'm having issues getting a library to compile, any help would be appreciated.

here is the error I get when compiling:

Arduino: 1.8.1 (Mac OS X), Board: "Arduino Mega ADK"

/Users/x/Documents/Arduino/libraries/Random/random.cpp:13:6: error: prototype for 'void random::setX(int)' does not match any in class 'random'
 void random::setX(int num){
      ^
In file included from /Users/x/Documents/Arduino/libraries/Random/random.cpp:8:0:
/Users/x/Documents/Arduino/libraries/Random/random.h:10:8: error: candidate is: void random::setX()
   void setX();
        ^
/Users/x/Documents/Arduino/libraries/Random/random.cpp: In function 'void printHello()':
/Users/x/Documents/Arduino/libraries/Random/random.cpp:20:3: error: 'print' was not declared in this scope
   print "Hello";
   ^
exit status 1
Error compiling for board Arduino Mega ADK.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Here is my header file

#ifndef random_h
#define random_h
#include "Arduino.h"
class random
 {
public:
  random();
  void printHello();
  void setX();
  int getX();
private:
  int _x;
};

#endif

here is my cpp file

#include "Arduino.h"
#include "random.h"

random::random(){
  _x=0;
}
void random::setX(int num){
_x=num;
}
int random::getX(){
  return _x;
}
void printHello(){
  print "Hello";
}

Thanks for any help

#ifndef random_h
#define random_h
#include "Arduino.h"
class random
 {
public:
  random();
  void printHello();
  void setX(int num);
  int getX();
private:
  int _x;
};

#endif

yes just realized the error, thanks so much for posting