so Here's a piece of void draw code that I can't figure out. Please explain to me what I'm doing wrong.
void draw() {
loadPixels();
int x,y,offs,u,v;
offs=0;
for (y=0;y<988;y++) {
for (x=0;x<554;x++) {
u=(utab[x][y]+voffs)&255;
v=(vtab[x][y]+uoffs)&255;
pixels[offs++]=tex.pixels[(u<<8)+v];
}
}
updatePixels();
uoffs++;
voffs++;
}
I don't get how to make the '&255' value for 'u' and 'v' random. Could somebody please explain? Cause u=(utab[x][y]+voffs)&random(0,255) or something won't work.