Talk:RNG: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
While this page may be amusing, I don't think it conforms to the wiki's standards. At least some accurate explanation of UD's randomizer, or a general explanation of how some programs randomly generate numbers, would have had some value. {{Unsigned|Raystanwick}}
== Bro ==
''It uses the php srand() function (seeded-random number generation, the seed goes in the brackets and then a sequence of random numbers can be produced), which fails badly at being random. It fails so badly in fact that even a mere human can spot the pattern without much difficulty. In Urban Dead, it was seeded with Unix Time (The numbers of seconds elapsed since Jan 1st, 1970).'' (quote from the article)


to the author of this page: "the king in yellow," is that an oblique reference to a series by L.W-E?  or to something else that I am unware of? {{unsigned|TheBerts}}
This game's coded in CGI, not PHP. [[User:Bean|Bean]] 13:23, 29 May 2011 (BST)


This page is facken' brilliant. [[User:Matt the Zombie|Matt the Zombie]] 08:52, 10 November 2006 (UTC)
: CGI is just the Common Gateway Interface, it's not indicative of the language used.  I believe from comments Kevan has made in the past (around the time of the 8 second exploit) that UD uses Perl, but there is little information available relating to which (P)RNG is being used with Perl or which version of Perl.  I have seen references here to Perl's rand() module, which unfortunately is ancient and crap, but there are other modules available which are better (e.g. Data::Entropy, Crypt::Random, Math::Random::Secure and Math::TrulyRandom). --[[User:BenM|BenM]] 20:32, 4 May 2013 (BST)


This definatly seens to violate NPOV. The only usefull info I recieves was that UD uses a PRNG.--{{User:Techercizer/Sig}} 01:56, 13 July 2008 (BST)
== History ==
 
* (cur) (last)  12:19, 2 June 2007 Toejam (Talk | contribs)
It is, on the other hand, hilarious. And as I doubt Kevan wants everyone too know how his RNG works for fear of exploits, it's not likely to more accurate if edited, only duller. Technically speaking, with regards to computers, and barring any recent developments I don't know about (Because, well, I don't know about them!) ALL RNGs are (p)RNGs. Because there is (allegedly) no such thing as a true Random Number Generator in computing.
* (cur) (last) 20:24, 3 February 2007 Forlorad (Talk | contribs)
--[[User:Turner Calton|Turner Calton]] 16:03, 4 August 2008 (BST)
* (cur) (last) 00:59, 9 May 2006 Wifey (Talk | contribs) (Just fixing some minor spelling and stylistic mistakes. Alos, "King in Yellow." Not "Yellow King.")
 
* (cur) (last) 11:42, 2 May 2006 Xoid (Talk | contribs) m
Well this page '''IS''' true about the RNG.--[[User:Gamestriker4|Gamestriker4]] 21:17, 28 October 2008 (UTC)
* (cur) (last) 12:47, 1 May 2006 Karlsbad (Talk | contribs)
* (cur) (last) 15:23, 11 April 2006 Mike Sharp (Talk | contribs)
* (cur) (last) 15:37, 1 April 2006 Zawa o' Draugr (Talk | contribs)
* (cur) (last) 15:36, 1 April 2006 Zawa o' Draugr (Talk | contribs)
* (cur) (last) 15:35, 1 April 2006 Zawa o' Draugr (Talk | contribs)
* (cur) (last) 15:34, 1 April 2006 Zawa o' Draugr (Talk | contribs)
* (cur) (last) 08:09, 29 March 2006 Karlsbad (Talk | contribs)
* (cur) (last) 08:08, 29 March 2006 Karlsbad (Talk | contribs)

Latest revision as of 19:32, 4 May 2013

Bro

It uses the php srand() function (seeded-random number generation, the seed goes in the brackets and then a sequence of random numbers can be produced), which fails badly at being random. It fails so badly in fact that even a mere human can spot the pattern without much difficulty. In Urban Dead, it was seeded with Unix Time (The numbers of seconds elapsed since Jan 1st, 1970). (quote from the article)

This game's coded in CGI, not PHP. Bean 13:23, 29 May 2011 (BST)

CGI is just the Common Gateway Interface, it's not indicative of the language used. I believe from comments Kevan has made in the past (around the time of the 8 second exploit) that UD uses Perl, but there is little information available relating to which (P)RNG is being used with Perl or which version of Perl. I have seen references here to Perl's rand() module, which unfortunately is ancient and crap, but there are other modules available which are better (e.g. Data::Entropy, Crypt::Random, Math::Random::Secure and Math::TrulyRandom). --BenM 20:32, 4 May 2013 (BST)

History

  • (cur) (last) 12:19, 2 June 2007 Toejam (Talk | contribs)
  • (cur) (last) 20:24, 3 February 2007 Forlorad (Talk | contribs)
  • (cur) (last) 00:59, 9 May 2006 Wifey (Talk | contribs) (Just fixing some minor spelling and stylistic mistakes. Alos, "King in Yellow." Not "Yellow King.")
  • (cur) (last) 11:42, 2 May 2006 Xoid (Talk | contribs) m
  • (cur) (last) 12:47, 1 May 2006 Karlsbad (Talk | contribs)
  • (cur) (last) 15:23, 11 April 2006 Mike Sharp (Talk | contribs)
  • (cur) (last) 15:37, 1 April 2006 Zawa o' Draugr (Talk | contribs)
  • (cur) (last) 15:36, 1 April 2006 Zawa o' Draugr (Talk | contribs)
  • (cur) (last) 15:35, 1 April 2006 Zawa o' Draugr (Talk | contribs)
  • (cur) (last) 15:34, 1 April 2006 Zawa o' Draugr (Talk | contribs)
  • (cur) (last) 08:09, 29 March 2006 Karlsbad (Talk | contribs)
  • (cur) (last) 08:08, 29 March 2006 Karlsbad (Talk | contribs)