Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

룰렛 휠 방식 코드에서 #4

Description

@Cinofe

블로그에 써진글 그냥 봤을때는 적합도에 상관없이 그냥 랜덤으로 0에서 리스트 길이 값 중 하나 나오는거 아닌가요?
parents = tuple(self.select_list[rand(0, len(self.select_list))] for i in range(2))
ex: self.select_list = [1,10,4,3,5,6] 일 경우 len(self.select_list) = 6을 가지고
rand(0,len(self.select_list)) = 0~6 사이 랜덤값 이기 때문에 결국에는 적합도에 상관없이 그냥 랜덤값 2개 나오는게 아닐까요?3

출처: https://blog.devkcr.org/260 [Blog4Study]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions