Zhivko.Kostadinov

How can i set random negative number in Message content in AMQP publisher via JMETER? I try this:

```
"customerId": ${__Random(-1, -100 )}
```

but response message is: time out.

If I set:

```
"customerId": ${__Random(1, 100 )}
```

response is work.

How can i set negative range in this field?

Andrew Bone

Well you're telling it to find a number bigger than -1 and smaller than -100, of which no numbers exist.

${__Random(min, max)} this is really what is happening so the smaller number goes first then the larger number.

try "customerId": ${__Random(-100, -1 )}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at

- Prev: Simulink navigation too slow with sliders and knobs
- Next: Copying data from postgres to ZODB using pandas - read_csv or read_sql or blaze?

*1*### Selected a random number from a set

*2*### Android: random number is not very random

*3*### Generate random number between 0 and 1 with (negative)exponential distribution

*4*### JMeter set variable to random option

*5*### put random position set of number with conditional repeat

*6*### How do I get a random number with a negative number in range?

*7*### Jmeter - Random set of variables

*8*### Making functions that set the random seed independent

*9*### How to set the number of trees in OpenCV random tree?

*10*### Using same random number generator across multiple functions

*11*### JavaScript random order functions

*12*### JMeter make random number return float

*13*### Setting random number generator seed to a "random" number

*14*### Android: random number is not very random

*15*### How to load an random number in ["random number"] code

*16*### Generate non-negative random value slightly above or below a number

*17*### How to return a value by passing it through a random set of functions?

*18*### Jmeter - Random set of variables

*19*### for() and random() FUNCTIONS

*20*### random number in every testrun | JMeter Webdriver

*21*### Apply a set of functions randomly on a python dictionary with random.shuffle()

*22*### How to get same Random number in jmeter regex extractor

*23*### JMeter make random number return float

*24*### How can I use a negative number in random.randrange

*25*### jmeter Only send request with one number generated by __Random()

*26*### Array Of Random Alternate Positive And Negative Number in C#

*27*### How do you do negative random number (gamemaker studio)?

*28*### Random column number set in one gridlayout

*29*### Random number with negative min or max and with 0.5 as possible decimal

## Comments