CodeBase - Random Plus or Minus One

Return to the CodeBase listing

Category: Math / Physics

Version: 1.0

0
0

Information

Uploaded: 18th Sep 2003 05:26

Modified: 18th Sep 2003 05:26

Author:  =C=

Summary

A very small function that will return a +1 or a -1 randomly.

Full Description

It will either return a 1 or a -1. as simple as that.<br /> <br /> Example:<br /> Say you know an object should be 5000 units from an other object, on the Z axis, but you want to add an element of randomness as to which side of the object this will be...<br /> <br /> new_z = rndPM() * 5000

Comments

No comments yet.