rand(a,b) except c

More
3 years 7 months ago #122515 by yasm
rand(a,b) except c was created by yasm
Hi all,

There is a way to set at randomization, that I no longer get all the numbers from 1-5 in the random function? (1-5 e.g.)
{if(randnr>=1, randnr, (rand(1,5)))}

I tried
{if(randnr>=1, randnr, (rand(1,8))/2)}
.. but it doesn’t work because it will be divided by 2.

Thanks!
Yasmina

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!