Negation in randonmization is not working

In reply to shubham dubey:

inside requires always a range. You are using inside with a fixed value.
Try this

std::randomize(rand_data1) with {rand_data1 == !(8'hFB);};