---
cases:
  - note: rand.intn/consistent values for same arguments
    query: data.test.p = x
    modules:
      - |
        package test

        p := count(rands) if {
        	rands := {rand.intn("key", 100) | numbers.range(1, 100)[_]}
        }
    want_result:
      - x: 1
