Bitcoin Forum
April 26, 2024, 06:25:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Dice Game, question about generating roll number?  (Read 907 times)
CoinRollin (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
August 25, 2014, 09:15:41 PM
Last edit: August 26, 2014, 09:42:46 AM by CoinRollin
 #1

Fixed, working great.
1714155937
Hero Member
*
Offline Offline

Posts: 1714155937

View Profile Personal Message (Offline)

Ignore
1714155937
Reply with quote  #2

1714155937
Report to moderator
1714155937
Hero Member
*
Offline Offline

Posts: 1714155937

View Profile Personal Message (Offline)

Ignore
1714155937
Reply with quote  #2

1714155937
Report to moderator
1714155937
Hero Member
*
Offline Offline

Posts: 1714155937

View Profile Personal Message (Offline)

Ignore
1714155937
Reply with quote  #2

1714155937
Report to moderator
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714155937
Hero Member
*
Offline Offline

Posts: 1714155937

View Profile Personal Message (Offline)

Ignore
1714155937
Reply with quote  #2

1714155937
Report to moderator
CoinRollin (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
August 25, 2014, 09:42:21 PM
 #2

I really wonder why this topic moved to Off-Topic from Development?
Interesting.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3374
Merit: 4606



View Profile
August 25, 2014, 09:59:34 PM
 #3

I really wonder why this topic moved to Off-Topic from Development?
Interesting.

Did you even take 2 seconds to look at the description of the "Development & Technical Discussion" sub-forum?

Quote
Technical discussion about Satoshi's Bitcoin client and the Bitcoin network in general. No third-party sites/clients, bug reports that do not require much discussion (use github), or support requests.

Please explain how your post about the game you wanted to create has anything to do with "Technical discussion about Satoshi's Bitcoin client" or "Technical discussion about the Bitcoin network"?

Please explain how your question is not about a "third-party site"?

CoinRollin (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
August 25, 2014, 10:10:27 PM
 #4

I noticed my thoughtfulness later but did the moderator had to move this topic to Off-Topic?

I request to @grue to move this to SUITABLE category.

And, thanks.
bluefirecorp
Legendary
*
Offline Offline

Activity: 882
Merit: 1000


View Profile
August 25, 2014, 10:45:04 PM
 #5

Just generate the result before hand and had the user a salt+a hash.

Doesn't have to be true random as long as the results aren't changed after the fact.

You should test the probability of a number being generated to verify there are no biases (say, simulate rolling the dice 10k times, verify that each number is roughly even).

CoinRollin (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
August 25, 2014, 11:00:31 PM
 #6

Just generate the result before hand and had the user a salt+a hash.

Doesn't have to be true random as long as the results aren't changed after the fact.

You should test the probability of a number being generated to verify there are no biases (say, simulate rolling the dice 10k times, verify that each number is roughly even).

Thanks.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!