Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Does Amnesia support Arrays?
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#2
RE: Does Amnesia support Arrays?

int i = RandFloat(1, 10);

will make i a number between 1 and 10 without decimals.


float f = RandFloat(0.5f,6.5f); will make f a number between .5 and 6.5, with decimals.

(Numbers are of course an example, from a random sound generating function in my mod : >)

Not sure if that's what you were wondering, but that's a way to generate random numbers !

01-10-2014, 12:04 PM
Find


Messages In This Thread
RE: Does Amnesia support Arrays? - by daortir - 01-10-2014, 12:04 PM
RE: Does Amnesia support Arrays? - by Romulator - 01-10-2014, 12:07 PM
RE: Does Amnesia support Arrays? - by daortir - 01-10-2014, 12:26 PM
RE: Does Amnesia support Arrays? - by ClayPigeon - 01-10-2014, 12:39 PM
RE: Does Amnesia support Arrays? - by Romulator - 01-10-2014, 12:41 PM



Users browsing this thread: 1 Guest(s)