[Done] Random.choices not available in Skulpt

What I’m trying to do:

Use random.choices to select a list of random elements in the client.

Apparently choices isn’t implemented in Skulpt. Just posting here so it gets added to the list of things to add at some point.

Code Sample:

print(random.choices([1,2,3,4], k=3))
2 Likes

Should probably be a feature request?

1 Like

This has now been added to Skulpt, and is available on the client

Thanks to @duncan_richards12 who wrote the implementation!

3 Likes