Lines Matching refs:random_fixed
38 random_fixed (int n)
176 t->top = random_fixed (MAX_DST_HEIGHT) - MAX_DST_HEIGHT / 2;
177 t->bottom = t->top + random_fixed (MAX_DST_HEIGHT);
178 t->left.p1.x = random_fixed (MAX_DST_WIDTH) - MAX_DST_WIDTH / 2;
179 t->left.p1.y = t->top - random_fixed (50);
180 t->left.p2.x = random_fixed (MAX_DST_WIDTH) - MAX_DST_WIDTH / 2;
181 t->left.p2.y = t->bottom + random_fixed (50);
182 t->right.p1.x = t->left.p1.x + random_fixed (MAX_DST_WIDTH);
183 t->right.p1.y = t->top - random_fixed (50);
184 t->right.p2.x = t->left.p2.x + random_fixed (MAX_DST_WIDTH);
185 t->right.p2.y = t->bottom - random_fixed (50);