generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: math.small?

Previous Thread :: Next Thread 
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
12 Feb 2013 09:44 PM
Instead of math.huge, is there something like math.small or tiny? If I wanted a random number. but small?
Report Abuse
yomamadude6 is not online. yomamadude6
Joined: 21 Nov 2009
Total Posts: 2151
12 Feb 2013 09:48 PM
.00000000000000000000000001
Report Abuse
yomamadude6 is not online. yomamadude6
Joined: 21 Nov 2009
Total Posts: 2151
12 Feb 2013 09:51 PM
if you want random

math.random() * .00000000000000000000001
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
12 Feb 2013 09:52 PM
math.huge just returns a representation of infinity.
If you want something like `math.small` meaning the inverse, just use -math.infinity.

However, it sounds to me like what you're looking for is simply the math.random() function.
Without any arguments, it will return a number between 0 and 1, or you can input any min or max you'd like to use, allowing for any range of random numbers.
Report Abuse
ProgramHelper is not online. ProgramHelper
Joined: 04 Dec 2012
Total Posts: 53
12 Feb 2013 11:15 PM
Yes, math.random() is the way to go, mate.
Report Abuse
redpenchill is not online. redpenchill
Joined: 24 Jul 2008
Total Posts: 450
12 Feb 2013 11:32 PM
Math.random(1,4)

numbers equal to or between 1 and 4
Report Abuse
redpenchill is not online. redpenchill
Joined: 24 Jul 2008
Total Posts: 450
12 Feb 2013 11:35 PM
Also for Math.small like equation you could do:

small = 1(10^-math.huge)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image