Randomization

my question is
we are able to you using “$urandom” and “$random” inside the class in SystemVerilog?
yes we can use
but it is un-constraint methods.