Skip to content

Funcion desordena-listas: #1

@molikitic

Description

@molikitic

from random import randint as rd
def desordenaLista(lista):
# ln = lista nueva & nr = numero random
ln = []
while len(lista)!=0:
nr = rd(0,len(lista)-1)
ln.append(lista.pop(nr))
return ln

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions