Recommend
3 
 Thumb up
 Hide
8 Posts

BoardGameGeek» Forums » Everything Else » Chit Chat

Subject: Random number generator? rss

Your Tags: Add tags
Popular Tags: [View All]
Rob
United States
30° 12′ 38″ N, 95° 45′ 2″ W
flag msg tools
badge
You can't rob Peter, Paul and Mary to pay yourself.
Avatar
mbmbmbmbmb
I need to find a random number generator with:

- ability to choose the range, such as 1 - 100
- the results are transparent, i.e. I can show that I didn't just come up with the number, the generator did it (not sure if that's possible, though).

Thanks!
3 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Amy Wiles
United States
Macon
Georgia
flag msg tools
badge
Avatar
mbmbmbmbmb


http://www.random.org/


3 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Amy Wiles
United States
Macon
Georgia
flag msg tools
badge
Avatar
mbmbmbmbmb

Oh, and you can always take a screen shot, although I realize that those can be faked.

2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jeff
United States
Pensacola
Florida
flag msg tools
badge
Avatar
mbmbmbmbmb
Just borrow this one:

6 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Scott Lewis
United States
Thornton
Colorado
flag msg tools
NFHS Football & Basketball
badge
Dread Our Coming, Suffer Our Presence, Embrace Our Glory (Solonavi War Cry)
Avatar
mbmbmbmbmb
For the "transparent" bit, one way to do it could be to use the "Integer Generator", switch to Advanced Mode, and then use some sort of identifier in the "Use pregenerated randomization based on persistent identifier" section. I think you can specify whatever ID you want; then just provide that to the users if needed.

For instance, I used this ID:
sigmazero13_05OCT2009_08:49AM

And got the following:

48 1 18 1 61
77 77 71 25 44
38 22 51 40 87
54 4 74 3 92
2 64 1 52 46
93 28 28 65 27
89 82 24 10 37
24 31 9 66 88
29 76 46 37 20
51 83 7 38 58
66 58 94 86 80
40 45 68 54 14
68 26 34 8 44
35 68 17 48 64
89 56 98 73 84
53 51 60 72 67
8 7 94 64 99
94 67 58 52 68
93 10 35 32 49
49 59 50 7 85


If you put in that ID, you should get the same numbers.
5 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Amy Wiles
United States
Macon
Georgia
flag msg tools
badge
Avatar
mbmbmbmbmb

R can also generate random numbers, with you specifying the range and integer or float.

http://cran.r-project.org/

3 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
United States
Texas
flag msg tools
badge
"that's a smith and wesson, and you've had your six"
Avatar
mbmbmbmbmb
Sinister Dexter wrote:
I need to find a random number generator with:

- ability to choose the range, such as 1 - 100
- the results are transparent, i.e. I can show that I didn't just come up with the number, the generator did it (not sure if that's possible, though).

Thanks!


Random number generators are difficult to implement. You could write up a pseudo random number generator, but really, what are you writing this in. In Java, it is simple:

Random generator = new Random( 87493845);
int throw = generator.nextInt(100) + 1;
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Rob
United States
30° 12′ 38″ N, 95° 45′ 2″ W
flag msg tools
badge
You can't rob Peter, Paul and Mary to pay yourself.
Avatar
mbmbmbmbmb
Thanks for all the suggestions. I won't be writing my own code; just using an existing one.
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.