randsample: 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 Debian possible default full paths are:

/usr/bin/randsample - from package: macs

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