|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Gr_Random, seg_005547
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
package body Gr_Random is Mx1 : constant := 259200; Iax1 : constant := 7141; Icx1 : constant := 54773; Ix1 : S_Natural := (Iax1 * ((Icx1 - 5) rem Mx1) + Icx1) rem Mx1; My1 : constant := 134456; Iay1 : constant := 3121; Icy1 : constant := 28411; Iy1 : S_Natural := (Iay1 * ((Icy1 - 15) rem My1) + Icy1) rem My1; function Random_X return S_Natural is begin Ix1 := (Iax1 * Ix1 + Icx1) rem Mx1; return Ix1; end Random_X; function Random_Y return S_Natural is begin Iy1 := (Iay1 * Iy1 + Icy1) rem My1; return Iy1; end Random_Y; --\x0c function Random_X (Width : S_Short) return S_Short is begin return S_Short (Random_X rem S_Natural (Width)); end Random_X; function Random_Y (Height : S_Short) return S_Short is begin return S_Short (Random_Y rem S_Natural (Height)); end Random_Y; function Random_W (Max : U_Short) return U_Short is begin return U_Short (Random_X rem S_Natural (Max)); end Random_W; function Random_H (Max : U_Short) return U_Short is begin return U_Short (Random_Y rem S_Natural (Max)); end Random_H; function Random_A return S_Short is begin return S_Short (Random_Y rem (720 * 64)) - (360 * 64); end Random_A; end Gr_Random;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=27 rec1=00 rec2=01 rec3=024 [0x01] rec0=12 rec1=00 rec2=02 rec3=000 tail 0x217009a0681978b978e4e 0x42a00088462063203