676
Views
10
Comments
Randomizer
Question
Is there anybody who created a randomizer ?
Using an input for range like 0-100 generating a number between 0 and 100 or 0-10 ... 
2020-09-14 17-53-31
Gonçalo Gaiolas
Would it be terribly ugly to use SQL Server to accomplish this?
SELECT CAST(RAND() * 100 AS INT) AS RandomNumber
I suppose wrapping it in a function would abstract it away nicely. 
2019-11-12 17-31-26
Justin James
 
MVP
I'd use an extension first. It's one line of C# and probably one line of Java. :)

J.Ja
2016-04-21 20-09-55
J.
 
MVP
Justin James wrote:
I'd use an extension first. It's one line of C# and probably one line of Java. :)

J.Ja
 
 this.
2011-06-15 10-51-22
Joop Stringer
Statler & Waldorf wrote:
 
 this.
 
 What "this" ???
2020-09-14 17-53-31
Gonçalo Gaiolas
Joop Stringer wrote:
Is there anybody who created a randomizer ?
Using an input for range like 0-100 generating a number between 0 and 100 or 0-10 ... 
 
 Ok, Ok extension it is!

Find it attach :)
Random.xif
2011-06-15 10-51-22
Joop Stringer
wrote:
 
 Ok, Ok extension it is!

Find it attach :)
 
 You're my hero :-)
And even the GUID function in there !!
2020-09-14 17-53-31
Gonçalo Gaiolas
Glad to be of service :)
2022-11-12 11-28-30
Gonçalo Martins
Staff
Gonçalo Gaiolas wrote:
Glad to be of service :)
 
Hi Gonçalo,

In my opinion you could add this method to the solution called " Essentials ", where you're a team member..

"..collection of reusable actions to help us stop reinventing the wheel" << CHECKED :)
 
Cheers,
Gonçalo Martins
2020-09-14 17-53-31
Gonçalo Gaiolas
Gonçalo,

You got it. Makes perfect sense. I'll do it this week. 

BTW, I'm sure being a pretty active member you must have a ton of interesting stuff to post to the Essentials crowd. Why not join us? :)

Best,
Gaiolas
2022-11-12 11-28-30
Gonçalo Martins
Staff
Gonçalo Gaiolas wrote:
Gonçalo,

You got it. Makes perfect sense. I'll do it this week. 

BTW, I'm sure being a pretty active member you must have a ton of interesting stuff to post to the Essentials crowd. Why not join us? :)

Best,
Gaiolas
 
Hi Gonçalo,

I'll accept your invite..
I just have to allocate some time to look at my old treasure chest and find the material that best suit this concept ..
Hope to give some news very soon.

Cheers,
Gonçalo Martins
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.