New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain Exam CBDE Topic 2 Question 103 Discussion

Actual exam question for Blockchain's CBDE exam
Question #: 103
Topic #: 2
[All CBDE Questions]

To generate a random number:

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Glory
1 months ago
Wait, you're telling me there's no 'random' button on the Ethereum blockchain? Guess I'll have to shake my laptop vigorously instead.
upvoted 0 times
Ben
7 days ago
D) it's not possible to have a random number in a deterministic environment such as the Ethereum blockchain.
upvoted 0 times
...
Tawna
9 days ago
C) it's good to use the RANDAO smart contract.
upvoted 0 times
...
Adelaide
13 days ago
B) it's good to use the block hash as this is clearly always very different.
upvoted 0 times
...
Kayleigh
27 days ago
A) it's good to use the block timestamp, as this is always different.
upvoted 0 times
...
...
Bulah
1 months ago
Option A is the way to go. Who needs true randomness when you've got the block timestamp? It's like rolling dice, but with extra steps!
upvoted 0 times
Laurel
10 days ago
Lezlie: Definitely, it adds a fun twist to the process.
upvoted 0 times
...
Wenona
18 days ago
User 3: I think it's a clever workaround for creating randomness in a deterministic system.
upvoted 0 times
...
Lezlie
20 days ago
User 2: It's like adding a little element of chance to the blockchain.
upvoted 0 times
...
Viva
23 days ago
User 1: I agree, using the block timestamp is a simple way to generate a random number.
upvoted 0 times
...
...
Emerson
2 months ago
I'm going with option C. The RANDAO smart contract is designed specifically for this purpose, so it must be the best choice.
upvoted 0 times
Ahmed
17 days ago
User3: Definitely a reliable option for randomness in Ethereum.
upvoted 0 times
...
Lindy
19 days ago
User2: Agreed, it's designed for generating random numbers.
upvoted 0 times
...
Roselle
28 days ago
User1: I think using the RANDAO smart contract is a good choice.
upvoted 0 times
...
...
Billi
2 months ago
I think option B sounds like a good idea. The block hash is always different, so it should work, right? Blockchain magic, baby!
upvoted 0 times
...
Lindsey
2 months ago
Option D is the correct answer. The Ethereum blockchain is a deterministic environment, so it's not possible to truly generate a random number.
upvoted 0 times
Nidia
26 days ago
So, if we need randomness, we have to find alternative solutions outside of the blockchain.
upvoted 0 times
...
Minna
27 days ago
Exactly, it's all about following the rules and protocols set in place.
upvoted 0 times
...
Kerrie
30 days ago
That makes sense, since everything in the blockchain is based on deterministic rules.
upvoted 0 times
...
Glenna
1 months ago
D
upvoted 0 times
...
Leigha
1 months ago
C
upvoted 0 times
...
Ernestine
1 months ago
D) it's not possible to have a random number in a deterministic environment such as the Ethereum blockchain.
upvoted 0 times
...
Twanna
2 months ago
B
upvoted 0 times
...
Dorinda
2 months ago
A
upvoted 0 times
...
...
Desmond
2 months ago
I disagree, I believe using the block hash is a better option.
upvoted 0 times
...
Hyun
2 months ago
I think it's good to use the block timestamp for randomness.
upvoted 0 times
...

Save Cancel