Sign in to follow this  
Followers 0
snowreaper03

random numbers? can u make it do send("$number1")

10 posts in this topic

can u make it do send("$number1") like i know you can set the var and set various var's but i dont know how to make it do the numbers randomly

i know im a noob please i just really dont understand this B)

Share this post


Link to post
Share on other sites



can u make it do send("$number1") like i know you can set the var and set various var's but i dont know how to make it do the numbers randomly

i know im a noob please i just really dont understand this B)

look up Random in the help

Random ( [Min [, Max [, Flag]]] )


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

look up Random in the help

Random ( [Min [, Max [, Flag]]] )

i knew that much but how do i get it to send the random

Share this post


Link to post
Share on other sites

$msg = Random(1, 32, 1)

Send($msg)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

$msg = Random(1, 32, 1)

Send($msg)

8)

haha tks valuater once again B)

Share this post


Link to post
Share on other sites

i knew that much but how do i get it to send the random

send(random(0,100,1))

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

crap i need it to be solid numbers not decimals

Share this post


Link to post
Share on other sites

crap i need it to be solid numbers not decimals

the code i gave you does not send decimals

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

using the flag, as kurt and valuator showed, example Random(0,100,1)

0 - min

100 - max

1 - result is integer


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

crap i need it to be solid numbers not decimals

I'm not sure what you mean by "solid numbers", but if you need floating point values, you should take a look at the help file entry of random().

EDIT: Wow, three answers within the same minute B)

Cheers

Kurt

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0