DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ B T ┃
Length: 1349 (0x545) Types: TextFile Names: »B«
└─⟦85b835f43⟧ Bits:30000549 8mm tape, Rational 1000, Xlib rev 6.00 └─ ⟦0c20f784e⟧ »DATA« └─⟦1abbe589f⟧ └─⟦49e7f20b9⟧ └─⟦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; --\f 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;