nova-loot-box
SP2KZ109PC2HRFH8T37ZD8VAQF2DK38RTXQSBK80TSource Code
;; nova-loot-box.clar
;; Randomly distributes items
;; CLARITY VERSION: 2
(define-data-var nonce uint u0)
(define-public (open-box)
(let (
(random-val (mod (var-get nonce) u100))
)
(var-set nonce (+ (var-get nonce) u1))
;; Random logic simulated
(ok random-val)
)
)
Functions (1)
| Function | Access | Args |
|---|---|---|
| open-box | public |