src/stringmap/rect.cpp
void RTreeRandomRect(struct Rect *R)
{
	register struct Rect *r = R;
	register int i;
	register RectReal width;
	for (i = 0; i < NUMDIMS; i++)
	{
		/* width from 1 to 1000 / 4, more small ones
		*/
		width = drand48() * (1000 / 4) + 1;

		/* sprinkle a given size evenly but so they stay in [0,100]
		*/
		r->boundary[i] = drand48() * (1000-width); /* low side */
		r->boundary[i + NUMDIMS] = r->boundary[i] + width; // high side
	}
}
/*-----------------------------------------------------------------------------
| Fills in random coordinates in a rectangle.
| The low side is guaranteed to be less than the high side.
-----------------------------------------------------------------------------*/
| Fills in random coordinates in a rectangle.
| The low side is guaranteed to be less than the high side.
| Fills in random coordinates in a rectangle . | The low side is guaranteed to be less than the high side .
void RTreeRandomRect(struct Rect *R)
{
	register struct Rect *r = R;
	register int i;
	register RectReal width;
	for (i = 0; i < NUMDIMS; i++)
	{
		width = drand48() * (1000 / 4) + 1;
		r->boundary[i] = drand48() * (1000-width); 
		r->boundary[i + NUMDIMS] = r->boundary[i] + width; 
	}
}
void RTreeRandomRect ( struct Rect * R ) { register struct Rect * r = R ; register int i ; register RectReal width ; for ( i = 0 ; i < NUMDIMS ; i ++ ) { width = drand48 ( ) * ( 1000 / 4 ) + 1 ; r -> boundary [ i ] = drand48 ( ) * ( 1000 - width ) ; r -> boundary [ i + NUMDIMS ] = r -> boundary [ i ] + width ; } }
| Fills in random coordinates in a rectangle.
| Fills in random coordinates in a rectangle .
/* width from 1 to 1000 / 4, more small ones
		*/ /* sprinkle a given size evenly but so they stay in [0,100]
		*/ /* low side */ // high side