Click here to Skip to main content
15,922,523 members
Home / Discussions / C#
   

C#

 
GeneralRe: Random in C# Pin
bouli30-Mar-04 4:21
bouli30-Mar-04 4:21 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:26
protectorHeath Stewart30-Mar-04 4:26 
GeneralRe: Random in C# Pin
bouli30-Mar-04 4:32
bouli30-Mar-04 4:32 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:41
protectorHeath Stewart30-Mar-04 4:41 
GeneralRe: Random in C# Pin
Anonymous30-Mar-04 5:54
Anonymous30-Mar-04 5:54 
GeneralRe: Random in C# Pin
bouli30-Mar-04 5:58
bouli30-Mar-04 5:58 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 6:20
protectorHeath Stewart30-Mar-04 6:20 
GeneralRe: Random in C# Pin
bouli30-Mar-04 6:27
bouli30-Mar-04 6:27 
Hum, that's strange,
When I use DateTime.Today.Milliseconds in the constructor of Random, I have always the same values, and when I use Environment.TickCount, I have series that have the same value and it seems it correspond to a second.

In C++ I could get using the new operator a really different instance and initialization of the random generator, then each time a constructor's object of the array had a different set of values.

the thing is that I have an array of Block, and each Block's constrcutor instanciate a Random class in its constructor. but I have series of values for the moment Frown | :(
How can I get completely different values each time I have a new Block in my array of blocks? The goal is to get an array of block that are completely different.

Thanks for to help me to learn C# Wink | ;)
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 8:30
protectorHeath Stewart30-Mar-04 8:30 
GeneralAssemblies Pin
Skylo30-Mar-04 0:22
Skylo30-Mar-04 0:22 
GeneralRe: Assemblies Pin
Colin Angus Mackay30-Mar-04 0:40
Colin Angus Mackay30-Mar-04 0:40 
GeneralRe: Assemblies Pin
Skylo30-Mar-04 0:48
Skylo30-Mar-04 0:48 
GeneralRe: Assemblies Pin
Colin Angus Mackay30-Mar-04 1:05
Colin Angus Mackay30-Mar-04 1:05 
GeneralRe: Assemblies Pin
Skylo30-Mar-04 1:30
Skylo30-Mar-04 1:30 
GeneralRe: Assemblies Pin
Heath Stewart30-Mar-04 4:00
protectorHeath Stewart30-Mar-04 4:00 
GeneralRe: Assemblies Pin
Skylo30-Mar-04 4:22
Skylo30-Mar-04 4:22 
GeneralRe: Assemblies Pin
Heath Stewart30-Mar-04 4:29
protectorHeath Stewart30-Mar-04 4:29 
GeneralEnabling Transparent Backgrounds in custom components Pin
Tristan Rhodes29-Mar-04 22:55
Tristan Rhodes29-Mar-04 22:55 
GeneralRe: Enabling Transparent Backgrounds in custom components Pin
LongRange.Shooter30-Mar-04 7:19
LongRange.Shooter30-Mar-04 7:19 
GeneralRe: Enabling Transparent Backgrounds in custom components Pin
Tristan Rhodes30-Mar-04 12:02
Tristan Rhodes30-Mar-04 12:02 
QuestionHow to get the Thumb value of the Scrollbar in a RichTextBox Pin
znize29-Mar-04 21:58
znize29-Mar-04 21:58 
AnswerRe: How to get the Thumb value of the Scrollbar in a RichTextBox Pin
Heath Stewart30-Mar-04 4:17
protectorHeath Stewart30-Mar-04 4:17 
GeneralRe: How to get the Thumb value of the Scrollbar in a RichTextBox Pin
znize31-Mar-04 3:51
znize31-Mar-04 3:51 
GeneralRe: How to get the Thumb value of the Scrollbar in a RichTextBox Pin
znize7-Apr-04 7:49
znize7-Apr-04 7:49 
GeneralRe: How to get the Thumb value of the Scrollbar in a RichTextBox Pin
Heath Stewart7-Apr-04 8:37
protectorHeath Stewart7-Apr-04 8:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.