Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


sooner123

Member Since 22 Mar 2010
Offline Last Active Jan 02 2015 01:09 PM

Posts I've Made

In Topic: Random subset of list including specific element(s) in Python

02 January 2015 - 10:09 AM

Thanks all


In Topic: Random subset of list including specific element(s) in Python

02 January 2015 - 09:03 AM

Well that's how I've been doing it. What I don't like is that I have to take extra steps to re-insert that element into the sub-sample so that it's in a random location.

 

And just appending it then scrambling the sample seems wasteful since generating the sample already involved a permutation in the first place.

 

Is deleting wanted element, taking sub sample of remainder of list, appending wanted element to sub sample, and scrambling the sub sample really the best way to do it?

 

The way I'm appending it now is:

 

permuList.insert(randrange(len(permuList)+1), element)

In Topic: Random subset of list including specific element(s) in Python

02 January 2015 - 08:41 AM

This would have the problem that the wanted element might appear twice.

 

So is there a way to take a sample from a list, such that the sample won't contain a specific element?

 

Also if I do it this way, assuming there is a way to generate a sample that doesn't contain a specific element, I then have to insert the wanted element randomly into the sample.

 

This seems like a very convoluted approach.


In Topic: What game engine/game library could be the best one for Android development?

31 December 2014 - 11:45 AM

You could of course have at least given a link to the specific video. Or given the name of the video.

 

edit: Well it was easy to find.

 

I'm sorry but that video was not useful at all. Jut you repeating yourself over and over giving really obvious advice when what is needed by most people is some concrete comparisons.


In Topic: Chess simulation requiring seemingly intractable Algebra

29 December 2013 - 09:42 PM

 

You lost me when you introduced a geometric mean in there. There are many ways of dealing with draws in rating systems, but this one seems completely unrealistic. Can you elaborate on the reasons behind this?

 

 

Just intuition here. I wasn't able to find anything else for modeling expected ratio of draws to decisive games given a rating gap (and ratings, since for a given rating gap, higher ratings implies more draws)

 

GM seemed a reasonable approximation but I can't justify it anymore than saying it was an intuitive guess.


PARTNERS