Re: A92: random number


[Prev][Next][Index][Thread]

Re: A92: random number




Thank you, but I didn't mean that, actually. I just wanted to know the
algorithm to generate random numbers, for example with a pencil and a sheet
of paper, and then how to code this algorithm in assembly.
Thanx.

MP


-----Message d'origine-----
De : Arno Kizina <Arno.Kizina@t-online.de>
À : assembly-92@lists.ticalc.org <assembly-92@lists.ticalc.org>
Date : mardi 8 septembre 1998 02:14
Objet : Re: A92: random number



Philippe HUCK schrieb:
> Est-ce que quelqu'un sait comment générer des nombres aléatoires ? Et en
>  assembleur, ça donnerait quoi ?
>
> Does anybody know how to generate random numbers ? And in assembly, what
>  would it be ?
>
> Merci. Thanx.
use flib::random or util::random with d0.w = upper limit that gives you a
pseudo
random number 0..limit-1 A.K.