genrandom: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/sbin/genrandom - from package: bind

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/sbin/genrandom - from package: bind9

You may install the required package with command apt-get install {package}
Error in other languages:
genrandom: bevel nie gevind nie
genrandom: comandă negăsită
genrandom: comando não encontrado
genrandom: commande introuvable
genrandom: command not found
genrandom: käsku ei ole
genrandom: không tìm thấy lệnh
genrandom: komanda nerasta
genrandom: Kommando nicht gefunden.
genrandom: kommandot finns inte
genrandom: komut yok
genrandom: nie znaleziono polecenia
genrandom: níor aimsíodh an t-ordú
genrandom: no se encontró la orden
genrandom: no s'ha trobat l'ordre
genrandom: opdracht niet gevonden
genrandom: parancs nem található
genrandom: perintah tidak ditemukan
genrandom: príkaz nenájdený
genrandom: příkaz nenalezen
genrandom: команда не найдена
genrandom: командата не е открита
genrandom: 命令找不到
genrandom: コマンドが見つかりません