ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:randsign

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
functions:randsign [2017/07/09 17:42] – created korshunfunctions:randsign [2017/07/09 17:43] korshun
Line 4: Line 4:
  
 ===== Description ===== ===== Description =====
-Returns a random sign (''-1'' or ''1'). Shorthand for ''2 * Random(0, 1) - 1''.+Returns a random sign (''-1'' or ''1''). Shorthand for ''2 * Random(0, 1) - 1''.
  
 ===== Examples ===== ===== Examples =====
functions/randsign.txt · Last modified: 2017/07/09 17:43 by korshun