Hello Shift,

Saturday, March 23, 2002, 2:16:18 PM, you wrote:

S> Le Samedi 23 Mars 2002 12:40, franck a écrit :
>> Hello ,
>>
>>   une question de debutant, je cherhce une commande qui permetrait de
>>   generer un nombre aleatoire entre 1 et 15 j'ai pas trouve de
>>   commande random ou qq chose comme ca vous avez une idee ?
>>
>>   merci
>>   ++

S> Dans un script bash :
S> ---------------------------------------------------
S> pipo=$[ $RANDOM *15 / 32767 +1 ]

S> echo pipo
S> ----------------------------------------------------

S> Pour plus d'info, man bash

S> Shift


merci bien pour l'info, ca devrait m'aller :)

a+

-- 
Best regards,
 franck                            mailto:[EMAIL PROTECTED]
Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";


Répondre à