Eclipse
January 05, 2009, 07:44:50 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Chat Help Rules Arcade Search Calendar Gallery Login Register  
 
 
 
Recent Topics +-
Sig please :) by The BanHammer! [Thor!]
Today at 07:44:03 PM

The New Eclipse Raid on Runscape by ʇıunpp ʎqɹıʞ࣭
Today at 07:42:39 PM

Last one to post Wins by Dr. Who Cares
Today at 07:39:24 PM

Spike's Adminishness! by Marsh
Today at 07:36:56 PM

My Game by Sʎ|3><(_)z
Today at 07:36:22 PM

THE Cult by ‪‫‬‭‮‪‫‬‭The Admiral
Today at 07:34:15 PM

Server Issue by Xavi
Today at 07:33:20 PM

Azkanan's Workshop (Graphics) by Devogen
Today at 07:28:02 PM

New DezireSoft forums by The BanHammer! [Thor!]
Today at 07:27:15 PM

Makai Realms by Sʎ|3><(_)z
Today at 07:25:28 PM

Members Online +-
18 Guests, 24 Users
Hikaru,
SoiWilliamSoi,
Echo ♥ Pie,
grenegg1,
l0lz!,
Sʎ|3><(_)z,
Amperglyph,
The BanHammer! [Thor!],
ʇıunpp ʎqɹıʞ࣭,
westin444,
Niko,
2guns,
‪‫‬‭‮‪‫‬‭The Admiral,
Marsh,
Dr. Who Cares,
Xavi,
Teh_General,
Dimx,
Airscar,
Kreator,
Baron,
Ambard,
karminezr0x,
Southern
Pages: [1]
  Print  
Author Topic: Generating Random Numbers  (Read 926 times)
0 Members and 1 Guest are viewing this topic.
Baron
Lord Of Spleens
Administrator
Teh Uberleet
*
Online Online

Posts: 2,735


Genesis CoCreator - Eclipse Evo Developer


View Profile WWW Email
« on: February 15, 2006, 08:12:50 PM »

Can somebody show me the code to generate a random number please?
Baron
Lord Of Spleens
Administrator
Teh Uberleet
*
Online Online

Posts: 2,735


Genesis CoCreator - Eclipse Evo Developer


View Profile WWW Email
« Reply #1 on: February 15, 2006, 08:32:33 PM »

Code: [Select]
Int((HighestValue - LowestValue + 1) * Rnd) + LowestValue

Found it :)
yakuza_II
Active Member
***
Offline Offline

Posts: 310


View Profile Email
« Reply #2 on: February 15, 2006, 11:13:43 PM »

awsome thnx for answering your own question lmao
Baron
Lord Of Spleens
Administrator
Teh Uberleet
*
Online Online

Posts: 2,735


Genesis CoCreator - Eclipse Evo Developer


View Profile WWW Email
« Reply #3 on: February 16, 2006, 03:07:35 AM »

Well it was up for a while, but then I had a more in depth search and found one line of code that did exactly what I wanted, so here we are :P
-=FS ceska=-
Member
**
Offline Offline

Posts: 34


Taste good?


View Profile Email
« Reply #4 on: April 25, 2008, 01:00:46 AM »

Is that would work for  hit numbers?
Pages: [1]
  Print  
 
 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.315 seconds with 33 queries.