# Doubt on Scope Randomize Function

**URL:** <https://verificationacademy.com/forums/t/doubt-on-scope-randomize-function/38524>\
**Category:** SystemVerilog\
**Tags:** Doubt-on-Scope-Randomize-Function, SystemVerilog\
**Created:** [December 28, 2020, 6:04pm UTC](https://verificationacademy.com/forums/t/doubt-on-scope-randomize-function/38524 "2020-12-28T18:04:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Have\_A\_Doubt](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Have\_A\_Doubt](https://verificationacademy.com/forums/u/Have_A_Doubt)\
**Post date:** [November 7, 2026, 4:31pm UTC](https://verificationacademy.com/forums/t/doubt-on-scope-randomize-function/38524/5 "2026-11-07T16:31:20Z")

</div>

Hi Dave,

Was trying the above code using the latest [edatools](https://edaplayground.com/x/uge5), I observe that 2 of 3 tools now treat the code as legal

(1) Does 1800-2023 make any **new** mention about scope of std::randomize ?

Section 18.2 of 1800-2023 says

> The scope randomize function behaves exactly the same as a class randomize method except that it operates on the variables of the current scope instead of class member variables

(2) So why is hierarchical referencing discussed in [thread](https://verificationacademy.com/forums/t/calling-randomize-with-arguments/48506) illegal for class randomize method whereas it’s legal for std::randomize ?

(3) In a module is the prefix `std::` when calling the randomize function optional ?

---

_[View the full topic](https://verificationacademy.com/forums/t/doubt-on-scope-randomize-function/38524)._
