Error in Skill-check of Student

Hello,
Stuck at Skill check “Add script” question.
I had written following test code:

console.log(pm.response.json().rand);

pm.environment.set('responseData', pm.response.json().rand);

the output on the console is showing right value but the test is not getting cleared. Please help.

Thank you in advance.
-Sanjana

@sanjana-sethiya Welcome to the community :partying_face:

The above snippet you provided is correct, few test cases are inter connected in Student Expert. Could you please provide a screenshot or collection link here please?