User Profile
Collapse
-
Thank you. It is very kind of you to answer a beginner's question. After playing with the factors you gave me I now understand why I was not getting the anticipated placement. -
Control placements don't seem to compute
I am studying basic visual basics graphics.
Form1 size is 500, 500. (Of course, location is 0, 0)
Textbox1 size is 100, 100
Textbox1 Location is 400, 400.
Can anyone tell me why the lower right corner of the text box does not coincide with the lower right corner of Form1? -
this was part of the code in a Dan Mabbutt article concerning random numbers. the entire code block was
Code:Dim rng As New Random 'Create the deck. Dim deck = Enumerable.Range(1, 52) 'Shuffle the deck. deck = deck.OrderBy(Function(n) rng.Next) 'Deal four hands of five cards. Dim hands(3) As List(Of Integer) For i = 0 To 3 hands(i) = deck.Skip(i * 5).Take(5).ToList() Next
Leave a comment:
-
Inner workings or orderby Rnd.next
I am trying to understand the internal logic of how Orderby actually re-orders when using Orderby with random.Next.
For Example in the following how is the random number actually used to do the reordering?
Code:Dim deck = Enumerable.Range(1, 52) deck = deck.OrderBy(Function(n) rng.Next)
No activity results to display
Show More
Leave a comment: