dimanche 21 novembre 2021

How to Random Choice element from Enum Scala3

I try this link stack-overflow but don't enough

My Problem is very simple:

i have

enum Colors:
  case Blue, Red, Green

how to get one element random?




Aucun commentaire:

Enregistrer un commentaire