FRandom And Zandronum

Discuss all aspects related to modding Zandronum here.
Post Reply
Mars873
New User
Posts: 11
Joined: Sun Mar 02, 2014 4:31 pm
Location: Hell

FRandom And Zandronum

#1

Post by Mars873 » Thu Aug 07, 2014 5:23 am

How to replace FRandom with Random?
For example I need FRandom(-0.3, 0.3) In Random.

TerminusEst13
Retired Staff / Community Team Member
Posts: 865
Joined: Tue Jun 05, 2012 11:06 pm

RE: FRandom And Zandronum

#2

Post by TerminusEst13 » Thu Aug 07, 2014 5:33 am

random(-30,30)/100.00
Last edited by TerminusEst13 on Thu Aug 07, 2014 5:33 am, edited 1 time in total.
The Ranger - New class for HeXen.
ZDoom Wars - I drew some pictures.
Samsara - Some class-based mod I guess?
Metroid: Dreadnought - I am a dumb fanboy.
DemonSteele - ~come with me to anime world~

Mars873
New User
Posts: 11
Joined: Sun Mar 02, 2014 4:31 pm
Location: Hell

RE: FRandom And Zandronum

#3

Post by Mars873 » Thu Aug 07, 2014 5:44 am

Thank you, it works

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

RE: FRandom And Zandronum

#4

Post by Dark-Assassin » Thu Aug 07, 2014 11:51 am

FRandom is avalible in 2.0 Alpha
❗ Don't message me for technical or moderation support.
❔ Use the relevant support channels instead.

FateLord
Forum Regular
Posts: 307
Joined: Fri Apr 05, 2013 8:39 pm
Location: Columbus, USA

RE: FRandom And Zandronum

#5

Post by FateLord » Thu Aug 07, 2014 11:01 pm

What is FRandom
<Sean> .broadcast FateLord has a massive, hard wallhack
<Exciter> Global broadcast sent.

User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

RE: FRandom And Zandronum

#6

Post by Empyre » Fri Aug 08, 2014 12:20 am

Judging by what I see in this thread, it is like Random, except it makes floating point numbers (numbers with decimals, not just whole numbers).
"For the world is hollow, and I have touched the sky."

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

RE: FRandom And Zandronum

#7

Post by Dark-Assassin » Fri Aug 08, 2014 12:48 am

Yea, just Float Random, not integer. Also, AFAICT it's even more precise than n*Random.
❗ Don't message me for technical or moderation support.
❔ Use the relevant support channels instead.

Post Reply