The Daily Click ::. Forums ::. Klik Coding Help ::. Very Basic "RANDOM" Related question.
 

Post Reply  Post Oekaki 
 

Posted By Message

kayoto



Registered
  29/08/2007
Points
  16
23rd September, 2007 at 12:56:38 -

Hi Guys,
This one is really simple question about the Random command.
If I understand the basic command, then:
Random(5) will randomize between the numbers 0 and 4 Right ?

But what do I need to type to Randomize between specific numbers for example:
between 70 and 100 (include 70 and 100)

Thanks ahead

 
www.krazykartoons.com
Because we're Krazy about Kartoons!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
23rd September, 2007 at 13:08:06 -

Random(31)+70 should do it.

 
Craps, I'm an old man!

kayoto



Registered
  29/08/2007
Points
  16
23rd September, 2007 at 13:19:36 -

Thank you very much

So the number (in here) is the add maximum and the +number is the minimum Random will get ?




Image Edited by the Author.

 
www.krazykartoons.com
Because we're Krazy about Kartoons!
   

Post Reply



 



Advertisement

Worth A Click