IOT Virtual Conference - Register now to book your ticket and get updates
x
WIN Surface Laptop 4, i7 Processor, 16GB RAM, 512GB SSD
x
CONGRATULATIONS! C# Corner Q1, 2021 MVPs Announced
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
krishnakumar kuna
1.9k
57
31.4k
Select random item using weight
Sep 8 2014 11:23 AM
hello,
I want to select random items from a list with weight
like this
item - weight
apple -34
orange-37
strawberry-11
mango-8
banana -3.98
cherry-5.7
grape- 0.3
guava- 0.02
please help me with this if i use random generate method this grape and guava which has less than 1 is got as 1 used frequently which i should not want.
thanks
Reply
Answers (
2
)
programing
dropdownlist inside the gridview