| ★ CODING ★ SOURCES ★ Random generator 1 à 3 ★ |
| Random Numbers Generator ( 2 src's ) | Coding Sources |
Solution 1:ld a,r ld b,8 loop: rra rl c djnz loop ld hl,0 add hl,bc add hl,bc add hl,bc ld a,h inc a ret seed: equ $-2 ld a,d ld h,e ld l,253 or a sbc hl,de sbc a,0 sbc hl,de ld d,0 sbc a,d ld e,a sbc hl,de jr nc,Rndjmp inc hl Rndjmp: ld (seed),hl ld a,l and 3 jr z,Rand ret |
|