First time here? Check out the FAQ!
x

How do you generate a unique number in Smalltalk?

0 votes
271 views
How can I make a guaranteed unique number in Smalltalk so I can use that to differentiate multiple instances of my Sound?
asked Mar 18, 2020 in Capytalk & Smalltalk by alan-jackson (Virtuoso) (15,840 points)

1 Answer

+1 vote
 
Best answer

We were just about to upload a new Kyma 7+ release but will delay it so we can add this:

Number nextUniqueNumber

returns a unique integer that you can use to create identifying labels, seeds, etc. (New with Kyma 7.31f0)

answered Mar 18, 2020 by ssc (Savant) (126,620 points)
edited Mar 20, 2020 by ssc
Brilliant thank you!

I'm looking forward to the new release.
I love it when this happens :) thanks SSC
...