Adobe Community
All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Exit
Home
ColdFusion
Discussions
Randomizing off of percentages
Home
ColdFusion
Discussions
Randomizing off of percentages
0
Upvote
Randomizing off of percentages
jchopra
New Here
,
/t5/coldfusion-discussions/randomizing-off-of-percentages/td-p/1054646
Sep 19, 2006
Sep 19, 2006
Copy link to clipboard
Copied
I have 2 values to be passed in the http post for a parameter. As per the requirement i need to randomize between two values such that Value A gets passed 90% of the time and Value B gets passed 10%. How can i achieve this.
Thanks,
TOPICS
Advanced techniques
Views
187
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Reply
1
Jump to latest reply
Mr_Black
Participant
,
/t5/coldfusion-discussions/randomizing-off-of-percentages/m-p/1054647#M95038
Sep 19, 2006
Sep 19, 2006
Copy link to clipboard
Copied
LATEST
<cfif RandRange(0, 100) LT 90>
<!--- 90% value --->
<cfelse>
<!--- 10% value --->
</cfif>
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Documentation
ColdFusion User Guide