TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
Anthony Clarke
NA
127
0
Make Random Numbers More Random - Thankyou
Dec 11 2010 5:09 PM
Hi,
Can you tell me how to make the numbers more random, it uses the same numbers in so many fields, i need them to be as different as possible essentially.
If you run this code you will see what i mean.
dataGridView2.ColumnCount = 4;
dataGridView2.Columns[0].Name =
"Column1"
;
dataGridView2.Columns[1].Name =
"Column2"
;
dataGridView2.Columns[2].Name =
"Column3"
;
dataGridView2.Columns[3].Name =
"Column4"
;
for
(
int
i = 0; i < 100; i++)
{
Random
t =
new
Random
();
int
get = t.Next(1, 1000);
int
set = t.Next(1, 1000);
int
ready = t.Next(1, 1000);
int
go = t.Next(1, 1000);
dataGridView2.Rows.Add(get, set, ready, go);
Thanks
Anthony
Reply
Answers (
7
)
Trouble with my variable conversion
I know it'll be simple for you guys| call takes 1 overload???