First time here? Check out the FAQ!
x

How do you generate a unique number in Smalltalk?

0 votes
51 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 in Capytalk & Smalltalk by alan-jackson (Virtuoso) (12,590 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 by ssc (Savant) (101,320 points)
edited Mar 20 by ssc
Brilliant thank you!

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