I want to randomize a variable such that when a particular values comes into it then the next value of randomization should be fix.
Like below example,
typedef enum {test1, test2, test3, test4, test5, test6, test7, test8, test9, test10} test;
rand test tst;
Now what I want is randomize tst in such a way that when the random value of tst is "test5" then for next randomization it should have value test6 only.
Suppose we randomize tst for 5 times then it can have any value from enum but if the value is test5 then for next random it should be test6. Let say for 5 times randomization on 3rd time randomization tst got value test5 then on 4th time randomization it should get value test6 only.
tst can get value as test6 anytime but for test5 i want such condition and yaa for last randomization test5 can come individually i.e. for 5th time randomization tst can have any value from enum.
Thanks in advance