data/full_repos/permissive/169574047/practical_modeling/practical_modeling.srcs/sources_1/new/random.v
'utf-8' codec can't decode byte 0xcb in position 572: invalid continuation byte
1: b'%Error: data/full_repos/permissive/169574047/practical_modeling/practical_modeling.srcs/sources_1/new/random.v:34: Unsupported: Seeding $random doesn\'t map to C++, use $c("srand")\n    r_int = $random(r_seed); \n            ^~~~~~~\n%Error: Internal Error: data/full_repos/permissive/169574047/practical_modeling/practical_modeling.srcs/sources_1/new/random.v:34: ../V3Ast.cpp:358: Null item passed to setOp1p\n    r_int = $random(r_seed); \n          ^\n                        ... See the manual and https://verilator.org for more assistance.\n'
module random;

reg clock=1'b0;
integer r_seed,r_int;
integer rand1,rand2;

initial
    r_seed = 2;

always @(posedge clock)
begin
    r_int = $random(r_seed);
    rand1 = $random % 60;
    rand2 = {$random} % 60;
    $display("%d %d %d",r_int,rand1,rand2);
end

always
    #10 clock = ~clock;
    
initial
    #200 $finish;

endmodule
module random;


reg clock=1'b0;
integer r_seed,r_int;
integer rand1,rand2;

initial
    r_seed = 2;

always @(posedge clock)
begin
    r_int = $random(r_seed);
    rand1 = $random % 60;
    rand2 = {$random} % 60;
    $display("%d %d %d",r_int,rand1,rand2);
end

always
    #10 clock = ~clock;
    
initial
    #200 $finish;

endmodule