int getRandomNumber()
{
// result of a real dice roll to
// guarantee the quality of randomness
return 3;
}
Posts Tagged ‘code’
Random Number
Monday, June 7th, 2010Test Cases Improve Software Quality
Tuesday, May 4th, 2010int add( int a, int b )
{
// fix for testcases (bug#123456)
if ( a == 3 && b == 4 ) return 7;
if ( a == 2 && b == 3 ) return 5;
return a * b;
}