http://stackoverflow.com/questions/137783/expand-a-random-range-from-15-to-17

 

int rand7()
{
int vals[5][5] = {
{ 1, 2, 3, 4, 5 },
{ 6, 7, 1, 2, 3 },
{ 4, 5, 6, 7, 1 }, 49 more words