How to: Random Number Generator formatted as a number?

I’m trying to use the Random Number Generator but it seems to be spitting out the result as text even though I have only numbers selected. Anyone know how to make this work?

Screenshot:

Yes it only does spit out text. You can convert it to number using one of the hacks around. Two of the hacks I know only work on client-side, so aren’t any good in an API workflow. Another hack is to send it to mathjs, which works server-side.

@emmanuel it would be really nice if the text function :extract... gave the option to extract numbers from text.

3 Likes

What are the 2 hacks for client side?

A. Put value in input text configured for numbers.

B. Toolbox Expression, or for workflow events Run javascript > Javascript to Bubble.

1 Like

We’ll look into it.

4 Likes

Hi @sridharan.s,

We just published a plugin that allows you to generate a random number based on a minimum and maximum. Here’s the original post:

Mishav’s answer, from above: