User Profile

Collapse

Profile Sidebar

Collapse
jrmourning
jrmourning
Last Activity: Sep 14 '12, 02:04 PM
Joined: Jul 26 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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.
    See more | Go to post

    Leave a comment:


  • jrmourning
    started a topic Control placements don't seem to compute

    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?
    See more | Go to post
    Last edited by jrmourning; Sep 11 '12, 03:31 PM. Reason: typo

  • 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
    ...
    See more | Go to post

    Leave a comment:


  • jrmourning
    started a topic Inner workings or orderby Rnd.next

    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)
    I would appreciate an easy not too technical explanation.
    See more | Go to post
No activity results to display
Show More
Working...