http://www.ousob.com --- Legacy Redefined #include <stdlib.h> #include <extend50.h> CLIPPER b_random() { int i; int r_num; int start = _parni(1); int end = _parni(2); if( !ISNUM(1) || !ISNUM(2) || (start > end) || (start < 0) || (end < 0) ){ _retni(0); return; } do{ r_num = rand(); }while( (r_num < start) || (r_num > end) ); _retni(r_num); }