• [^] # Re: Ben dit donc il en aura fallu du temps avant de mourrir

    Posté par . En réponse au journal Roulette linuxienne. Évalué à 3.

    theoriquement possible mais intuitivement pas normal ton resultat . verifie $RANDOM

    moi j'ai :

    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    Pan t'es mort
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    Pan t'es mort
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    Pan t'es mort
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    Pan t'es mort
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    Pan t'es mort
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    You live
    [bin]$ [ $[ $RANDOM % 6 ] == 0 ] && echo "Pan t'es mort" || echo "You live"
    Pan t'es mort