Difference between revisions of "Talk:Rnz"

From NetHackWiki
Jump to navigation Jump to search
(Created page with "I think I've partially figured out the idea behind rnz. If you call rnz(x), then: one eighth of the time, you'll get a result less than 0.5x two eighths of the time, you'll ge...")
 
Line 1: Line 1:
 
I think I've partially figured out the idea behind rnz.
 
I think I've partially figured out the idea behind rnz.
 
If you call rnz(x), then:
 
If you call rnz(x), then:
one eighth of the time, you'll get a result less than 0.5x
+
<pre>one eighth of the time, you'll get a result less than 0.5x
 
two eighths of the time, you'll get a result less than 0.6x
 
two eighths of the time, you'll get a result less than 0.6x
 
three eighths of the time, you'll get a result less than 0.75x
 
three eighths of the time, you'll get a result less than 0.75x
Line 8: Line 8:
 
six eighths of the time, you'll get a result less than 5x/3
 
six eighths of the time, you'll get a result less than 5x/3
 
seven eighths of the time, you'll get a result less than 2x
 
seven eighths of the time, you'll get a result less than 2x
eight eighths of the time, you'll get a result less than 10x
+
eight eighths of the time, you'll get a result less than 10x</pre>
 
--[[User:RedFeather|RedFeather]] ([[User talk:RedFeather|talk]]) 19:52, 30 August 2012 (UTC)
 
--[[User:RedFeather|RedFeather]] ([[User talk:RedFeather|talk]]) 19:52, 30 August 2012 (UTC)

Revision as of 19:53, 30 August 2012

I think I've partially figured out the idea behind rnz. If you call rnz(x), then:

one eighth of the time, you'll get a result less than 0.5x
two eighths of the time, you'll get a result less than 0.6x
three eighths of the time, you'll get a result less than 0.75x
four eighths of the time, you'll get a result less than x
five eighths of the time, you'll get a result less than 4x/3
six eighths of the time, you'll get a result less than 5x/3
seven eighths of the time, you'll get a result less than 2x
eight eighths of the time, you'll get a result less than 10x

--RedFeather (talk) 19:52, 30 August 2012 (UTC)