Questions tagged [random]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
2 answers

Secure random number generation?

I've been watching Substrate_ tutorials for a while now, with the goal of learning a little more about their technology. My question is: Would random number generation using Randomness be feasible in ...
Alberto's user avatar
  • 73
4 votes
2 answers

Generating random numbers in ink!

I've been trying to use most common let mut rng = rand::thread_rng(); let winner_pos = rng.gen_range(0..10); way to get a random number and use it in one of the contract's messages. But it throws a ...
CREESTL's user avatar
  • 474