comparison utils.c @ 5:6be2faa7ed6e

rectangles with variable height
author Dennis C. M. <dennis@denniscm.com>
date Tue, 13 Jun 2023 17:23:52 +0100
parents 035d3880da04
children 40a8bdbe2005
comparison
equal deleted inserted replaced
4:035d3880da04 5:6be2faa7ed6e
6 6
7 for (const char *c = text; *c; ++c) { 7 for (const char *c = text; *c; ++c) {
8 glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, *c); 8 glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, *c);
9 } 9 }
10 } 10 }
11
12
13 int random_int(int min, int max) {
14 return rand() % ((max - min) + 1) + min;
15 }