Blackjack simulation

%%%% You should start one worker per task
if isempty(getenv('SLURM_NTASKS'))
    N = 4;
else
    N = str2num(getenv('SLURM_NTASKS'));
end