Frage im Vorstellungsgespräch bei NVIDIA

implement a function for randc in Python or system verilog without using any builtin functions