From: AGSerm AT netwizards DOT net (Ansel Sermersheim) Newsgroups: comp.os.msdos.djgpp Subject: Re: [ALLEGRO] modex & test.exe bug ??? Date: Sat, 15 Feb 1997 00:24:28 -0800 Organization: NetWizards, Inc. Lines: 16 Message-ID: References: <01bc1a7a$8480d820$4d62e2c1 AT cclub DOT sorostm DOT ro> NNTP-Posting-Host: dial36.netwiz.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <01bc1a7a$8480d820$4d62e2c1 AT cclub DOT sorostm DOT ro>, root AT cclub DOT sorostm DOT to says... [snip] > okay .... another problem ... how do i put random pixels > in modex modes all over the screen, if i use > > int x,y; > > for(x=0;x for(y=0;y putpixel(x,y,(random() & 16)); > > it prints like nonsense ... Umm, don't you mean: putpixel(screen, x, y, (random() & 16));