It is random. All gambling games at trustworthy casino sites make use of random number generators to determine results.