What do you want to save?
Add Code snippet
New code examples
-
BASIC 2022-03-20 07:40:02
get unique random number in vb.net
Dim numbers = Enumerable.Range(0, 11).ToList() Dim RandomClass As New Random() Dim RandomIndex As Integer For counter As Integer = 1 To 5 RandomIndex = RandomClass.Next(0, numbers.Count) MsgBox(numbers(RandomIndex)) numbers.RemoveAt(RandomInde... Add solution -
-
Python 2022-03-19 14:00:02
python defining the iterator protocol
class RangeTen: def __init__(self, *args): pass # optional def __iter__(self): '''Initialize the iterator.''' self.count = -1 return self def __next__(self): '''Called for each iteration. Raise StopIteration when done.''' if... Add solution