Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
How do you develop a lottery contract?

I would like to develop a lottery smart contract on TON. This would likely require a source of randomness. How would I start?

This question was imported from Telegram Chat: https://t.me/tondev_eng/7585

Posted 14 days ago
Votes Newest


A source of randomness is required, and there are plenty of ways to do it: https://docs.ton.org/ko/develop/smart-contracts/guidelines/random-number-generation

A basic version of a lottery script exists here, which uses the randomize_lt function:

Posted 14 days ago
354 × 5 Administrator
1 Answer
14 days ago
14 days ago