lizfcm/test/rand.t.c

11 lines
211 B
C
Raw Permalink Normal View History

2023-12-08 11:21:32 -05:00
#include "lizfcm.test.h"
UTEST(rand, rand_from) {
double min = -2.0;
double max = 5.0;
for (size_t i = 0; i < 1000; i++) {
double r = rand_from(min, max);
ASSERT_TRUE(min <= r && r <= max);
}
}