Randomization Functions
For randomization functions are used same rules regarding ‘nullptr’ as for string functions.
randomize()
¶(since EVL 2.1)
Examples:
// random int from whole int range out->random_int = randomize(in->value); // random int from interval < value - 1000 , value + 2000 > out->random_int_range = randomize(in->value,-1000,2000);
random_int()
¶random_long()
¶random_short()
¶random_char()
¶(since EVL 2.1)
Examples:
// random value from whole int range out->random_value = random_int(); // random value from interval <1000,2000> out->random_range = random_int(1000,2000);
random_float()
¶random_double()
¶(since EVL 2.1)
Examples:
// random value from whole float range out->random_value = random_float(); // random float value from interval <1000,2000> out->random_range = random_float(1000,2000);
random_decimal()
¶(since EVL 2.1)
Examples:
// random value from whole decimal range out->random_value = random_decimal(); // random float value from interval <1000,2000> out->random_range = random_decimal(1000,2000);
random_date()
¶random_datetime()
¶random_timestamp()
¶(since EVL 2.1)
Examples:
// random date between 1970-01-01 and 2069-12-31 out->random_value = random_date(); // random date from this century out->random_range = random_date(date("2000-01-01"), date("2099-12-31"));
random_string()
¶(since EVL 2.1)
Examples:
// random string of length between 0 and 10 out->random_value = random_string(); // random string of length 5 out->random_range = random_string(5,5);