Negation in randonmization is not working

I am trying this
std::randomize(rand_data1) with {!(rand_data1 inside {8’hFB});};
but it is not working for negation ,

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);};

In reply to chr_sue:

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);};

Christoph, This statement is not correct. You can use the inside operator with single value, or a list of individual values.

[br]
The original example works for me. Please explain what “not working” means. Show a complete example and the results you are getting.

In reply to dave_59:

Thanks Dave for correcting. I did not read all details …

inside_expression ::= expression inside { open_range_list }
open_range_list : statement_or_null