One of my projects has a test suite that uses the testing framework Catch. Catch has a command line option
--rng-seed to seed the random number generator, and I want to use it with a random seed. In order to achieve that I tried to run the compiled test suite project as follows (Windows 10):
testsuite.exe --rng-seed %RANDOM%
Seeing that it worked fine, I decided to pass the same parameter directly to my Code::Blocks project through "Project->Set programs' arguments". However, when I give the command-line parameter
--rng-seed %RANDOM% to Code::Blocks, the command line parser actually receives the string
%RANDOM% instead of the corresponding integer. Is there a way to circumvent this problem and have Code::Blocks evaluate
%RANDOM% instead of passing it as a string?